-
Notifications
You must be signed in to change notification settings - Fork 14
Simulink block parameters
Dénes Harmath edited this page Apr 18, 2019
·
3 revisions
When exporting Simulink blocks, it is not obvious what are the exact internal names of the block parameters, especially if the internal parameter names (listed in the Block parameters (S-function) dialog) are cryptic like SParam1
. The naming of parameters can be learned the following way:
- Set the relevant block parameters to unique values and save the Simulink model
- Rename the .slx file to .zip
- Open
simulink/blockdiagram.xml
in it - Search for the block's name
Don't forget to set the parameter type to char
even in case of numeric parameters!