Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Delaying two voltage reads to synch with others on a daq

I have 6 sensors connected to my daq via bnc, that output 0-5V. 2 of the sensors are on the same piece of hardware and are connected in series, so one is ~20ms delayed compared to the other (it's a gas analyzer, so the stream is pumped to one before the other) how can i delay the read or shift the data back 20sec for a specific input so everything is synced on screen in the graphs, and also in the tdms file i write to?

 

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

Hey,

One simple way is to just discard all of the data in the delayed read.  Since you know your sample rate and the ms delay, you can ignore the data that is read before any meaningful data is collected.  Just find the index of the array this occurs and match it with the other data.

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