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
- last edited on
05-05-2025
03:08 PM
by
Content Cleaner
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: https://www.ni.com/docs/en-US/bundle/labview/page/communicating-data-between-parallel-sections-of-co...
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