So I am nearing completion on a VI that controls a pump based on readings from a pressure transducer. There are several loops, sequence structures, and conditional statements in the VI that measure and manipulate the pressure transducer readings. I am reading the pressure transducer using a non-NI brand DAQ box. Everything is working great, but now I realize that I have to log the pressure data from each run of the VI.
The front pannel of the VI is relatively simple - a numeric indicator of the pressure, a chart of the pressure, and a numeric indicator of the volume delivered by the pump. The code updates the pressure indicator at several places using (primarily) local variables. I started to lay in arrays commands to collect the pressure data as code progressed, but then thought of coming here to ask if anyone knows of a better way.
Here is the question: is there a way to grab the values indicated on a front pannel indicator (no matter where in the code they came from), and write those values to an array that I can then dump to a spreadsheet when the run is complete? It seems to me that the answer may lie in a separate VI communicating with the primary VI via a global variable - both running simultaneously. Any comments or suggestions would be greatly appreciated.