Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Automated testing of Simlink models?

Status
Not open for further replies.

SomptingGuy

Automotive
May 25, 2005
8,922
Has anyone found a tool to automatically drive a Simulink model? I.e. press the right buttons programatically?

- Steve
 
Replies continue below

Recommended for you

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

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

[peace]
Fe
 
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
 
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
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor