Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronize data logging from serial read and analog input (pressure, temperature) from NI 9219

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

 

 

0 Kudos
Message 1 of 2
(3,797 Views)

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

0 Kudos
Message 2 of 2
(3,772 Views)