LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get RS232 data saved with analog voltage data?

I'm reading voltages in LabVIEW with cDAQ and an NI 9205 module.  I'm also reading data on an RS232 serial port.  I need to save the current values read from the RS232 port each time the channels of the NI 9205 module are read.  I've got the modified LabVIEW example program "Advanced Serial Read and Write.vi" reading the serial port, and I have a LabVIEW program getting data from the NI 9205, but I need each data point from the NI 9205 to include the current values that have been read from the serial port.  I want to save all the channels at a 500hz sample rate.  The serial data will be updated at 20hz now, and probably 100hz at some point in the future.  If MAX had a feature that would add local variables as a channel, I'd be all set, but it doesn't.  Haw can I do this?
0 Kudos
Message 1 of 2
(2,565 Views)

I have done this by using time stamps that I grab when the serial data comes in. The serial data gets saved just like the analog but slower of course. After the data has been collected I merged the two data sets using the time stamps to line up the data. For the most part serial data is not periodic (when compared to a crystal controlled data aquisition) so expect non-periodic time stamps.

 

Just trying to help,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 2 of 2
(2,561 Views)