MATLAB: Does the the SimPowerSystems power_3levelVSC.mdl demo return an error when I try to use it in Simulink 6.0 (R14)

demoerrorexamplepower_3levelvscsimpowersystemsSimscape Electrical

When I open the power_3levelVSC.mdl demo which ships with SimPowerSystems 3.1 (R14), it does not indicate any errors, but when I run the simulation, I get the following error:
Error in element 2 of signals field of initial state. Invalid name is specified

Best Answer

This bug has been fixed in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
There is an error in the MAT-file which provides the data for the power_3levelVSC.mdl demo that ships with SimPowerSystems 3.1 (R14). To work around this issue, download a revised version of the MAT-file. Here are the required steps:
1. Quit MATLAB
2. Rename the following MAT-file:
$MATLABROOT\toolbox\physmod\powersys\powerdemo\power_3levelVSC_xinit.mat
where $MATLABROOT is the MATLAB root directory on your machine, as returned by typing
matlabroot
at the MATLAB command prompt.
Rename the file to power_3levelVSC_xinit.mat.old
3. Download power_3levelVSC_xinit.mat from the bottom of the page. Place the new file in $MATLABROOT\toolbox\physmod\powersys\powerdemo\.
4. Restart MATLAB
5. After restarting MATLAB, issue the following command at the MATLAB prompt:
rehash toolboxcache