11-15-2020 08:23 AM
Im working on a simple project where i need to have two loops. One updates a numeric indicator every 10ms and the other updates a numeric indicator every 100ms and stop button is supposed to stop both loops.
Problem is when i use two timed loops in parallel only one runs and the other not.
11-15-2020 09:23 AM
Remember the Principle of Data Flow, which is the central "Rule" of LabVIEW -- with (very) few exceptions, no Structure (such as a Timed Loop) can be entered until data are present on all of its inputs, and until a Structure (such as a Timed Loop) exits, data will not be presented on any of its outputs.
Your two Timed Loops are connected (serially) by a pair of wires. Until the first loop finishes, the second cannot begin. The other interesting "feature" is that you have a feedback node (which I rarely use, as I find their metaphor confusing to me) seems to be connected "backwards", input side connected to an input, and output side connected to an output (note -- it might be correct, but, as I said, I find it confusing enough that I haven't "mastered" its use).
Bob Schor
11-15-2020 01:56 PM - edited 11-15-2020 02:04 PM
You already learned about dataflow and data dependency, so here are a few more observations:
The attached modification is probably not the exact solution you want, but study it. Maybe it can give you some general ideas.