The Math Forum

Search All of the Math Forum:

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

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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

Advanced Search

Back to Topic List Back to Topic List  

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]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.