LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LV8.0 - Using parallel loops with shared variables within a VI

I am trying to share data between two loops using shared variables, and I am having a hard time getting my second loop to start.  I have waits in both loops, and there are no inputs to the second loop that would prevent it from starting to iterate.  Sometimes it starts just fine, but I can't figure out what I am doing different if anything.  I am fairly new to Labview, and this is the first time I am trying to do anything with shared variables.  It seems like a great idea, but if I can't make this work, I'll have to go back to using queues.  I know my code has a lot of "no-no's" in it (writing data in my time critical loop, loops inside an event structure, a few local variables, etc...), and in the future I will work on better programming practices, but for now I am curious if anybody might know what might be going on with my code.

I am developing the code remotely so I am using simulated DAQ devices to play around with the code.
I am also using: LV 8.0, and Windows XP.

Thanks!
0 Kudos
Message 1 of 2
(2,602 Views)
(Sorry I cannot run your VI, because I don't have any drivers installed.)
 
I don't see any automatic mechanism to reset the stop button to FALSE. Could it be that you start the program at times with this button still depressed and thus the lower loop immediately stops? 
 
I am curious why you used "network published" shared variables. "Single process" should be sufficient to share between two loops. 😉
0 Kudos
Message 2 of 2
(2,591 Views)