An enhancement request has been filed with the development team to improve the clarity of this error message for this scenario in Accelerator mode.
I have a model open in accelerator mode. When I call 'set_param' to change the values of several model parameters, I get the following confusing error: >> set_param(vdp,'StopTime','100') Accelerator mode is not supported through the S-Function API Why is this? How can I fix this?
Prashant Kumar answered .
2025-11-20
>> set_param('vdp','StopTime','100')
If you change the model back to Normal mode then re-run the original command without quotes, the error message becomes more clear:
>> set_param(vdp,'StopTime','100') Warning: Non-scalar data in first argument to set_param is detected. Only first handle in the matrix is processed. Invalid Simulink object handle