Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: Access SimEvents Model Parameters via M-File
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Tiger

Posts: 83
Registered: 6/22/12
Access SimEvents Model Parameters via M-File
Posted: Mar 16, 2013 11:26 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hi Folks,

I have a, rather complex, SimEvents model. The input to my model is a text file containing entitiy attributes. Every time I use a different text file I must update few parameters. Parameters here include variables' values inside Level2 M-S Functions, Embedded Matlab Functions, and To Work Space blocks' names.

I'd like to be able to try-out different text files without having to physically update those parameters inside my model before launching the simulation. I'm aware of the m-file scripting using the 'sim()' function. However, what I'm struggling with is defining the actual parameters. I'm not even sure whether I can have control over changing some of the variables' values inside my Level 2 functions. Also, I'm not sure whether those "things" that need updating which I mentioned above are Simulink 'parameters' or 'data objects'. Please do excuse my software engineering knowledge in here :-).

I'd really appreciate you guys pointing out for me ways at being able to change those parameters' values. Cheers



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.