From: Scott on 28 Apr 2010 14:28 Is there an easy way to run a simulink model at real time rate. Right now I am doing a virtual enviornment where I control an object but I need to control it at a real time rate. Right now it runs at a rate much faster. You can see that it is simulating at a faster rate than I want. (basicially if I run it for 10 seconds ... I want it to take 10 seconds to run ... right now it takes < 1sec) Thanks in advance for your help S
From: Guy Rouleau on 29 Apr 2010 17:54 "Scott " <shansen.jnk(a)gmail.com> wrote in message <hr9unm$qgb$1(a)fred.mathworks.com>... > Is there an easy way to run a simulink model at real time rate. Right now I am doing a virtual enviornment where I control an object but I need to control it at a real time rate. Right now it runs at a rate much faster. You can see that it is simulating at a faster rate than I want. (basicially if I run it for 10 seconds ... I want it to take 10 seconds to run ... right now it takes < 1sec) > > Thanks in advance for your help > > S Hi, The Mathworks offers 2 products to run your Simulink model in real-time: Real-time Windows Target or xPC Target. If your application is critical and requires accurate real-time synchronization, this is what you need. If you only want to slowdown the simulation so that a human in front of it fells like it is in real-time, then there are multiple submissions on the central that can help you doing that. For example: http://www.mathworks.com/matlabcentral/fileexchange/21908 All it does is that it uses an s-function to "freeze" Simulink until the system clock reaches the Simulink next time step. I hope it helps. Guy
|
Pages: 1 Prev: errordlg with program termination Next: MathWorks Webinar: Large Data Sets in MATLAB- 5/13/10 |