ni.com is currently experiencing unexpected issues.
Some services may be unavailable at this time.
08-17-2010 10:09 PM
Hi,
I was wondering if there are any tips on speeding up the simulation in LabVIEW? I used a lot of components from Control and Simulations.
I had tried to arrange all of them and put a lot of functions into subVI or subSystem but the simulation time it took seems the same. Currently my simulation using ODE45 and the default time interval.
FYI, I'm taking input from Simulink through SIT to be input into my function in LabVIEW but Simulink run faster than LabVIEW which I think will be a problem as when Simulink finish.. LabVIEW still running. Any ideas on how I could solve this problem?
08-18-2010 07:11 AM
tebu
Do you have "Synchronize Loop to Timing Source" checked? If this is yes, then try to remove it. This will make the simulation run as fast as possible.
Also, if you have any Control Design function inside the simulation loop, in special the "Draw transfer function" or "Draw State-Space" or some 3D animation using picture or 3D picture control. To reduce the impact, you can just set the VI that does the rendering to run every second. To do that, right-click on top of the VI and select "SubVI node setup". There, you can choose the discrete option and use sampling time as 1 s. Another option, if you are creating a model and not changing during the execution of the VI, you can use "subVI node setup" and select "initialize". This will make the VI to Run only on initialization and won't run on subsequent time.
Do you have any I/O on your system? I/O in general define the maximum frequency you run.
Which version of LabVIEW are you using? Can you send a screen shot of your code? This would help us to better define what you can do.
Hope this helps