12-18-2018 07:08 AM
Sup guys,
Is there a way to make a VI outside a loop to take data from a VI that is inside a loop while it's running.
(My problem is that I have sub vi that has a loop inside of it and I want another VI that cannot be located inside of it to take data about the loop iteration)
You'll find a screenshot attached to this
Solved! Go to Solution.
12-18-2018 07:19 AM
Look into queues, notifiers, events, or even functional global variables. These are all common practices for transferring data between asynchronous processes
12-18-2018 07:33 AM
This is one of the standard problems in Labview. You can use for instance a shared variable, stream, notifier or queue to communicate between the loops. Here are some examples: http://zone.ni.com/reference/en-XX/help/371361N-01/lvconcepts/channel_wires_intro/
The easiest is probably to take a shared variable.
12-18-2018 07:34 AM
Thanks it should work
12-18-2018 07:37 AM
@77maxmustermann wrote:
Is there a way to make a VI outside a loop to take data from a VI that is inside a loop while it's running.
Whatever is reading the data will also need to be in a loop of its own if you want to constantly get the updates. If not in a loop, it will only read once.
12-18-2018 09:41 AM
Thanks for the warning. It's already the case