LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

control and simulation - SMP

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

0 Kudos
Message 1 of 2
(2,015 Views)

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,

Robert P-F
Applications Engineer
National Instruments
0 Kudos
Message 2 of 2
(1,929 Views)