How can I make a model run really real time in simulink. A 10 sec simulation is taking almost 5 min.

1 view (last 30 days)
I am using a serial port to acquire data , process it using DSP blocks and using SVM classification to classify the data, the svm is based on mex interface. My simulation not exactly real time. I am missing a lot of packets from serial port and it taking 5min for a 10sec simulation. How do I configure the simulation parameters to make it actually real time.

Answers (1)

Walter Roberson
Walter Roberson on 24 Sep 2013
What assurance do you have that the emulated processor would be able to handle that much computation in real time? You can tell Simulink that it needs to be able to prove Fermat's Last Theorem in 3.141 seconds, but that doesn't mean that any actual processor is going to be able to run the code that quickly.
  1 Comment
rahul manocha
rahul manocha on 24 Sep 2013
I am not an expert with simulink. Started using it few weeks back. I am basically reading some data from serial port, doing some calcution and the result will finally be controlling a motor. So, I need it to be really real time. Going by your answer I feel I can't use simulink for real time applications.

Sign in to comment.

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!