lharri73 / PySimlink

Compile, run, and interact with Simulink models natively in Python. https://lharri73.github.io/PySimlink/
GNU General Public License v3.0
15 stars 4 forks source link

Can change value of `default parameter behavior` from `inlined` to `tunable` #5

Open lharri73 opened 1 year ago

lharri73 commented 1 year ago

If constant blocks aren't appearing in block parameters, change this setting so they are tunable in the c api. Can be added to docs.

Pythoniasm commented 6 months ago

Where to change this? In the generate script set_param or the Simulink model settings? I am currently evaluationg PySimlink vs. slxpy w.r.t. to my slxpy-fork https://github.com/Pythoniasm/slxpy-fork.

With slxpy the tunable parameter setting is a very tiresome process.

lharri73 commented 6 months ago

You would have to change this in simulink before exporting to c-code. https://www.mathworks.com/help/rtw/ref/defaultparameterbehavior.html