MATLAB 2015b/2016a crashes when using set_param to modify mask parameters

1 view (last 30 days)
I have a Simulink model which has a s-function based block with a mask. Trying to set the mask values with set_param crashes MATLAB. This happens only in MATLAB 2015b/2016a when using a .m file to 1). open the .mdl file 2). set_param 3). simulate using sim.
If I manually open the model and type in the commands in the command window everything works fine. In 2015a, it works fine even when using the .m file for the above operations. The crash happens when set_param is called.
To replicate it using a simple model, I created a mask for a simple gain block and tried the same steps as above. The crash was reproducible again with MATLAB 2015b/2016a. It worked fine with 2015a. The only difference is that in the first model, the crash happened when set_param was called and in the simple model, it crashes when sim is called.
Attached is the zipped simple model (test.zip). I am using Windows 10 and mex is set to VS 2013.

Answers (0)

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!