High-Speed Digitizers

cancel
Showing results for 
Search instead for 
Did you mean: 

two channel timing measurment

Hi bunmioteg,

From looking at your code, it appears as though the way you want to acquire the time information is not what you currently have implemented.  Your code acquires a tick count according to the program flow, and not necessarily based upon the actual analog acquisitions and hardware timing.  You may want to consider doing a hardware analog trigger instead, and using the timestamp associated with the acquired data.  I have attached a VI that gives a basic implementation of this.

Since only one analog input task can be set up at a time, you would set up both analog input channels in the same task, and trigger the acquisition off of the designated level of the first channel.  The second channel would share the t0 timestamp of the first.  It looks like you may want to look for data on the second channel within a specific window.  The example shows a software analysis of the data to find values within a given window.  When it finds the first data point in that window, an amount of time past the trigger is calculated using the dt value of the waveform data.

Regards,
Andrew W
National Instruments


0 Kudos
Message 11 of 11
(3,398 Views)