jocelynm
New member
- Nov 14, 2005
- 1
I am not sure what is the best way to manipulate simulink model data by script during run time.
I found that an easy way is to add a constant block and change the value property with a set_param (or assigning variables to parameters). But I would have prefered to use data storage and be able to read/write it at run time.
Is it in any way possible by script?
Thx!
Jocelyn
By the way, I have looked at the option of inports/outports reading/writing workspace variables. But for the outports, apparently the simulation needs to be paused for them to update the worskpace variables. So its not an option ...
I found that an easy way is to add a constant block and change the value property with a set_param (or assigning variables to parameters). But I would have prefered to use data storage and be able to read/write it at run time.
Is it in any way possible by script?
Thx!
Jocelyn
By the way, I have looked at the option of inports/outports reading/writing workspace variables. But for the outports, apparently the simulation needs to be paused for them to update the worskpace variables. So its not an option ...