Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Nov 14, 2005
Messages
1
Location
CA
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

Back
Top