Why do I receive a mask initialization error when I run Simulink file in a newer version of Simulink?
Hi,
I can run the Simscape model below in Simulink 2015b:
https://www.mathworks.com/matlabcentral/fileexchange/54771-10-machine-new-england-power-system-ieee-benchmark
However, I am trying to generate a compiled version of this code, which requires using a newer version of Simulink. When I try to run the same code in Simulink 2020b, I get the following error:
"Failed to evaluate mask initialization commands.Caused by:Index exceeds the number of array elements (1)."
It happens in generator G1. I can’t debug it (if I copy and paste the code in Matlab, it can’t find one of the functions").
Any ideas on how to fix this error?Hi,
I can run the Simscape model below in Simulink 2015b:
https://www.mathworks.com/matlabcentral/fileexchange/54771-10-machine-new-england-power-system-ieee-benchmark
However, I am trying to generate a compiled version of this code, which requires using a newer version of Simulink. When I try to run the same code in Simulink 2020b, I get the following error:
"Failed to evaluate mask initialization commands.Caused by:Index exceeds the number of array elements (1)."
It happens in generator G1. I can’t debug it (if I copy and paste the code in Matlab, it can’t find one of the functions").
Any ideas on how to fix this error? Hi,
I can run the Simscape model below in Simulink 2015b:
https://www.mathworks.com/matlabcentral/fileexchange/54771-10-machine-new-england-power-system-ieee-benchmark
However, I am trying to generate a compiled version of this code, which requires using a newer version of Simulink. When I try to run the same code in Simulink 2020b, I get the following error:
"Failed to evaluate mask initialization commands.Caused by:Index exceeds the number of array elements (1)."
It happens in generator G1. I can’t debug it (if I copy and paste the code in Matlab, it can’t find one of the functions").
Any ideas on how to fix this error? simscape, mask initialization error, power system simulation MATLAB Answers — New Questions