03-21-2020 06:42 PM
Hi,
I am working on a VI where we are plotting multiple pressures and flows from cNI-DAQ. We can surrently display, and export to excel, 1 second of data points at a time. I would like to increase this to 2 or 3 seconds. I have looked but haven't found the place to do this. Also, I have noticed that the pressure plots are all synced in time, however the flows are not. Is there a way to sync this?
I have attached the VI, hope you can help!
THanks! John
03-22-2020 10:59 AM
Have you heard of the Principle of Data Flow, which governs how LabVIEW "orders" the sequence in which it executes code? Do you realize that you have 13 loops running in parallel, which means that you don't know the order in which they run?
There are a number of Worst Practices (that's a term I made up, in contrast to "Best Practices") that marks your LabVIEW code as almost impossible to improve except by "starting over".
Here's a suggestion -- program on a laptop. The screen is typically smaller than (what I'm guessing is) the monitor(s) you are using, and there's only one monitor. Shrinking a screenful of code into a 32x32 pixel sub-VI with 4 inputs on the left (Error In on the lower left), four outputs on the right (with Error Out on the lower right), and the two top and two bottom connectors not used (well, hardly ever), will go a long way to getting your code down to the point it can be understood and better debugged.
Bob Schor