LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I extract time from DAQ Assistent?

Hi!
I've done an application acquiring two voltages using the DAQ assistent.
Everything works fine. Now I would like to extract the time for each sample,
how do I do that? The output from the DAQ assistent i DDT. If I save the
DDT-output directly to an lvm-file I get the time correctly. But I would like to
extract the time and use it in my software.
 
Thanks for any help!
Regards,
Mattias Ottosson
 
0 Kudos
Message 1 of 5
(3,273 Views)
Try the from DDT express VI from the Express->Signal Manipulation palette (LV8.0).  This should convert it to a waveform, at which point you can extract the t0 and get your time.
0 Kudos
Message 2 of 5
(3,265 Views)
Thanks for your help. So if understood correctly I will get td and t0.
Is there any way to get the time for each sample, or should I just create an array
of timestamps starting at t0 and increasing by td? Using this way I must assume
that each sample is sampled with the same td, is this true? I use the DAQ assistent
as: Acquisition mode = N samples, N=100, Samplingfrequency= 1kHz. USB-6009.
 
Thanks again for your good help.
 
0 Kudos
Message 3 of 5
(3,260 Views)

Hello!

Yes you can assume that it has the same dt between each sample since you have a clock on the device that controls the acquisition (24MHz timebase if I am not mistaken).

The picture below shows how it can look like when extracting the t0 and dt in LabVIEW.

 

Regards,
Jimmie Adolph
Systems Engineering Manager, National Instruments Northern European Region

0 Kudos
Message 4 of 5
(3,247 Views)

The solution seems very easy when you know how to do it 🙂

Thank you for your kind help.

Regards

Mattias

0 Kudos
Message 5 of 5
(3,242 Views)