Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simulink model data by script at runtime ...

Status
Not open for further replies.

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 ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor