MATLAB: Do I receive an error when using the Voltage Measurement block in SimPowerSystems 2.3 (R13.0.1)

blockSimscape Electricalsimulink

I have created a Simulink model using SimPowerSystems blocks. When I update the diagram or try to simulate the model, I receive the following error regarding the Voltage Measurement block:
Error evaluating 'InitFcn' callback of Voltage Measurement block (mask) 'Voltage Measurement'. Error using ==> get_param
block_diagram does not have a parameter named 'PortConnectivity'

Best Answer

This problem has been fixed in SimPowerSystems 3.0 (R13.0.1+).
If you are using a previous version, read the following:
This is a bug in SimPowerSystems 2.3 (R13.0.1) in the way that the SimPowerSystems handles inputs from Simulink blocks in other libraries.
To work around this issue, try inserting a unity Gain block before the input port of the Voltage Measurement block.