LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to make 2 loops execute simulataneously?

I want LabVIEW to continue to take data so it may be recorded to file. I also want LabVIEW to run a control loop to ensure the conditions of my test remain true. It seems that way I presently have the vi configured this cannot happen.
0 Kudos
Message 1 of 3
(2,765 Views)
You may want to experiment with "Rendez-vous"

In the Functions Palette, under:
Adanced => Synchronization => Rendez-vous

Here is a brief overview: (quick & dirty example)

Create sub vi's for the two loops.
Wire the error in to both loops
Use the rendez-vous at the exit of the sub vi's (loops) to combine the error clusters
Open the sub vi's (one at a time) and under file select properties, then under Category, select Execution. For Preferred Execution System, select "Other 1" for the 1st sub-vi, and select "Other 2" for the second one.

I had done this quite a while ago, and the above are the steps that I recall... I appologize for not giving clearer details at this time. Experiment and let me know how it worked..

JLV
Message 2 of 3
(2,765 Views)
Hi,

JoeLabVIEW's suggestion is a good one. If you are new to LabVIEW, then it is important to understand that two loops on the same block diagram with no data dependencies (no wires connecting the loops together) will innately run in parallel (on separate threads).

Enjoy your coding.

Matt P.
Applications Engineer
National Instruments
Message 3 of 3
(2,765 Views)