MATLAB: Do I receive an error message when I connect a Machine Measurements Demux with the Permanent Magnet Synchronous Machine that is used as a generator in SimPowerSystems 4.1 (R14SP2+)

demuxmachinemagnetMeasurementspermanentSimscape Electricalsynchronous

I want to access the Rotor Speed output of a Permanent Magnet Synchronous Machine block. When I connect the Measurements Demux block to a Permanent Magnet Synchronous Machine block, I receive the following error messages:
Invalid setting for input port dimensions of 'v6doesnotwork/Machines Measurement Demux/Demux'. The dimensions are being set to 11. This is not valid because the total number of input and output elements are not the same
Error in port widths or dimensions. Invalid dimension has been specified for output port 1 of 'v6doesnotwork/Machines Measurement Demux/Mux'

Best Answer

There is a bug in SimPowerSystems 4.1 (R14SP2+) when connecting the Machine Measurements Demux block to the Permanent Magnet Synchronous Machine block.
To work around this issue, you can use the Simulink Bus Selector block to access the measurement outputs of the Permanent Magnet Synchronous Machine block. The Simulink Bus Selector block replaced the Machine Measurements Demux block in Simulink version R14SP2+.