04-14-2014 03:24 AM
I am using a LabVIEW Real-Time 2012 and a Desktop RIO for some real-time
simulations. The CPU has four cores. I have a problem when I try to run
multiple control & simulation loops in parallel on different cores. I have
manually assigned different cores to the loops and they are running, but not at
the same time. I need them to have exactly the same simulation time,
synchronized to the CPU. Is this possible?
Thanks a lot!
Best regards,
Sinkva
04-23-2014 03:10 AM
Hi Sinkva,
You can use notifiers or queues to 'trig' synchronous execution of loops, have a look at this white paper:
Application Design Patterns: Producer/Consumer
http://www.ni.com/white-paper/3023/en/
Make sure you are not entering the next iteration in the master loop until all slave loops have finished the current iteration (the slowest loop will set the timing).
Best regards,