12-05-2017 12:09 PM
In your picture you have ignored the concept of dataflow. Think of a SubVI, when does the data get output from the SubVI? Only after the code inside of it is finished running. The same applies to structures such as your while loop. Since your first while loop never stops, the numeric DBL is never passed to second while loop, so the second while loop never runs! Also, you should not wire a false to the While Loop terminal. Your code is going to have to stop sometime, so it looks like you are doing it by pressing the abort button. This stops your VI in an unknown state, so why not use a simple boolean control to stop it in a known state? 🙂
12-05-2017 12:56 PM
Thanks for the insight. I guess it's time to hit the youtube vids so I can understand the mechanics of dataflow better
12-05-2017 05:28 PM
Not really. Just look here. The guiding principles are:
A node executes only when data is available at all of its input terminals and supplies data to the output terminals only when the node finishes execution.
The more literally you can envision the above sentence, the better you can predict what happens when. 🙂
12-19-2017 09:01 AM
Goal: Data log Tc's every 60sec as well as "fuel weight".
So I've made an even bigger mess now. I've got the "pumps" to turn on and off with the switch manually, but not off based on the numeric value.
The indicator for "fuel weight" Turns on/off at the appropriate time based on the numeric, but only when it's outside of the event structure.
The system wont data log unless there is a timeout value for the event structure, or it will only log when some event occurs inside the structure.
Need a little help sorting things out, Thanks 🙂
12-20-2017 02:46 PM
Continued here. Please keep it all in one place.