×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

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!

*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

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! Already a Member? Login


Resources

Low-Volume Rapid Injection Molding With 3D Printed Molds
Learn methods and guidelines for using stereolithography (SLA) 3D printed molds in the injection molding process to lower costs and lead time. Discover how this hybrid manufacturing process enables on-demand mold fabrication to quickly produce small batches of thermoplastic parts. Download Now
Design for Additive Manufacturing (DfAM)
Examine how the principles of DfAM upend many of the long-standing rules around manufacturability - allowing engineers and designers to place a part’s function at the center of their design considerations. Download Now
Taking Control of Engineering Documents
This ebook covers tips for creating and managing workflows, security best practices and protection of intellectual property, Cloud vs. on-premise software solutions, CAD file management, compliance, and more. Download Now

Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close