From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you pass data out of a loop prior to it's termination?

I would like to pass information out of an executing loop structure while it is still looping. As far as I can tell, values collect at the loop structure output terminal until it is done. I want to get around this!
0 Kudos
Message 1 of 3
(2,433 Views)
You can use local or global variables. If you process the information in another part (loop, vi, etc.), there is the possibility you may run into race conditions. To avoid that you can use vi's for synchronozation or detection of ocurrences. Check LabVIEW's examples in the help file, specially those in the Advance section.

Regards;
Enrique
www.vartortech.com
Message 2 of 3
(2,433 Views)
Thanks a lot! I reviewed the help on those topics and that should do the trick.
0 Kudos
Message 3 of 3
(2,433 Views)