×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Automated testing of Simlink models?

Automated testing of Simlink models?

Automated testing of Simlink models?

(OP)
Has anyone found a tool to automatically drive a Simulink model?  I.e. press the right buttons programatically?

- Steve
 

RE: Automated testing of Simlink models?

What do you mean by automatically drive? I sometimes use ctrl+t to start a sim.
smile

peace
Fe

RE: Automated testing of Simlink models?

Oh I think you may mean along the lines of a m-file coded to run and take data from a sim?

peace
Fe

RE: Automated testing of Simlink models?

(OP)
Worse.  An m-file that presses the right buttons in a mask to cause its callbacks to run and then run a model using that mask.  Unlikely.

- Steve
 

RE: Automated testing of Simlink models?

Oh. I see what you are talkin about. I never tried that.
Usually when I need lots of code run in conjunction with a Simulink model I modify the code and use embedded m function blocks in the Simulink model. So far this has worked very nicely.

There were very few times when I just opted out for this and exported the results from the Simulink model to .mat files. Then wrote a m-file to process these automatically.

Although neither of these is what you want, there should be a way to work around it. Maybe someone else has tried it.
Sorry I couldn't be of more help Steve.  

peace
Fe

RE: Automated testing of Simlink models?

Assuming you know the coordinates of the "buttons" you need to press, couldn't you use one of those simple mouse recorder programs. Essentially, you go record the mouse moves and clicks manually and then it generates a macro to execute that 'n' times you want. I think you can put delays in it too.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources