12-01-2014 10:07 PM
Hi,
I have two separate VI's which take input from a serial port( connected to a mass balance) and NI 9219 module (which takes inputs from a thermocouple and 2 pressure transducers). I need to include them in a single block diagram and also place the read functions in the same while loop to enable data to be logged into a single excel or txt file every 5 seconds or so. And I need the time in seconds with each data point.
I am attaching the two VI's. Maybe a straightforward thing to do, but I am new to labview and would appreciate some help regarding this.
Thanks,
Ketki
12-03-2014 10:12 AM
Hi Ksharma77,
What you can do is move your serial write code (serial write and read loop) to the DAQmx read while loop. Try wiring the visa read node after the DAQmx Read node by wiring an error cluster between them.
Additionally, I would recommend using the producer/consumer architecture for your application. Please see this link:
http://www.ni.com/white-paper/3023/en/
Regards,
Devon R.
Applications Engineer
National Instruments