12-07-2005 02:50 PM
This should work. Set up 2 tasks each which take a digital trigger. Have one trigger on PFI0 and one trigger on PFI1. Each of the tasks should be finite and set the samples/sec and number of samples so that you get one second worth of data. When the first trigger occurs take a timestamp. When the second trigger occurs take another timestamp. Try this without the state diagram tookit to make sure the DAQ works and then incorporate the toolkit. I am not at my computer with DAQ right now but I think you could also get the timestamp from the waveform data that is being returned. Unbundle the waveform data to get the t0.
StuartG
12-07-2005 04:04 PM
12-07-2005 07:47 PM
12-08-2005 08:41 AM
12-08-2005 10:26 AM
12-08-2005 10:56 AM
12-08-2005 12:46 PM
12-08-2005 03:55 PM
Hi Pallen,
The USB-6008 does not accept analog triggers and there is only 1 PFI line on this device. So you can use that trigger line to start a finite or continuous acquisition. However, you will not be able to obtain a time between two triggers with the USB-6008. There is a great shipping example for using a hardware trigger to start an acquisition for the USB-6009 in the LabVIEW Example Finder. Go to Help >> Find Examples >> Hardware Input and Output >> DAQmx >> Analog Measurements >> Voltage >> Acq & Graph Voltage-Int Clk-Dig Start.vi. I hope you find this information helpful.
Regards,
Hal L.