For Programmers: Free Programming Magazines  


Home > Archive > Matlab > June 2007 > Slowing simulink down to real-time









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Slowing simulink down to real-time
Mac

2007-06-20, 7:20 pm

Hello,

I have a simulink file (called from a GUI) that runs a 3d graphical
representation (not from the VR toolbox) of the aerodynamics problem
I'm simulating. However, it simulates much to quick. I tried
squeezing the accuracy, which indeed slows it down, but it's very
hard to control the exact time it takes for the animation. So I tried
using the tic and toc commands with a user defined gain, so the user
can adjust the 'slowmotion rate' so to speak, but then I need to come
up with a criterion for the maximum runtime, which poses the same
problem as finding this correctly in the first place.

So my question is, is there a way in which I can slow down simulink
to the exact pace I want? So if I want it to take 10 seconds to run
the simulation, how do I do this? Provided the computational power is
sufficient to achieve this of course.

Kind regards,

Mac
Idin Motedayen-Aval

2007-06-20, 7:20 pm

Mac wrote:
> Hello,
>
> I have a simulink file (called from a GUI) that runs a 3d graphical
> representation (not from the VR toolbox) of the aerodynamics problem
> I'm simulating. However, it simulates much to quick. I tried
> squeezing the accuracy, which indeed slows it down, but it's very
> hard to control the exact time it takes for the animation. So I tried
> using the tic and toc commands with a user defined gain, so the user
> can adjust the 'slowmotion rate' so to speak, but then I need to come
> up with a criterion for the maximum runtime, which poses the same
> problem as finding this correctly in the first place.
>
> So my question is, is there a way in which I can slow down simulink
> to the exact pace I want? So if I want it to take 10 seconds to run
> the simulation, how do I do this? Provided the computational power is
> sufficient to achieve this of course.
>
> Kind regards,
>
> Mac


Mac,
This came up a while ago here. See this thread:
http://newsreader.mathworks.com/Web...39.JHQZcSD8eVv@
And this contribution on File Exchange:
http://www.mathworks.com/matlabcent...o?objectId=3175

HTH,
Idin Motedayen-Aval
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com