Set a Simulink parameter
cm_model_setSet or change a parameter on a loaded Simulink model or block, with optional model save; every change is logged and reversible.
Instructions
set_param on a loaded Simulink model or block. Logged; cm_revert_all restores the old value.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Model or block path | |
| save | No | Also back up and save the model file | |
| param | Yes | Parameter name | |
| value | Yes | New value (numbers are converted to text as Simulink expects) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||