11-07-2024 02:52 AM
Hello,
I have an inner For Loop that collects data points using a machine, which iterates "Number of Points + 1" times and an outer loop that iterates 10 times to repeat the whole data collection 10 times (please see attached image for reference). Does this mean that the inner For Loop is what gets executed first before the outer For Loop?
Solved! Go to Solution.
11-07-2024 03:24 AM
Yes. Any structure cannot continues until all components have finished. In this case, the inner loop. If you wrap it as a sub-vi, would you have the same question? 🙂
11-07-2024 03:34 AM
Hi user,
@solarfacility_user wrote:
Does this mean that the inner For Loop is what gets executed first before the outer For Loop?
Please speak out loud "THINK DATAFLOW!" whenever you have a question about "what executes first, what comes next"…
(It really helps to get reminded on this very basic mantra of LabVIEW from time to time.)
11-07-2024 11:39 AM - edited 11-07-2024 11:41 AM
LabVIEW data flow can be summed up in two sentences:
If you apply this in the most literal sense that you can, you'll be able to solve 99% of your dataflow questions.
Edit: Structures such as FOR loops, qualify as nodes.