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: Stream data form MATLAB to Simulink
Replies: 6   Last Post: Jan 30, 2013 1:51 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Michal

Posts: 3
Registered: 12/10/12
Re: Stream data form MATLAB to Simulink
Posted: Dec 10, 2012 6:27 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Thank you very much for your answer. I have tried both solutions that you gave to me, but unfortunately both doesn't work for me how I would like to. The main problem is that whatever method I use there is a need to stop MATLAB script for a moment to let Simulink gather a data, which means I have to use pause() command inside of main for loop of my MATLAB script. If I don't do this, Simulink waits with executing a model at t=0. The problem is that a minimum time for which the m-code script can be stopped by pause() command is approximately 0.0156 s. which is to long for me. That script realize object tracking on the video images from webcam, so such a long pauses causes the fps decrease.
So, my next question, more precise is: Is there any way to stream data from running MATLAB script to running Simulink model without, or with just very small delay?



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.