06-27-2008 04:53 PM
06-30-2008 07:02 PM
Hi Chuck,
Can I ask what read function you are using to obtain your data from the DAQ card? Are you working from an example program?
Regards,
Mallori M.
06-30-2008 08:17 PM
06-30-2008 08:41 PM
07-01-2008 03:59 PM
Hi CVilla,
So, after doing some research, I believe you are on the right track in your observation that you could take the time stamp on your own. While in LabVIEW the DAQmx API allows you to acquire data in a waveform datatype that includes t0 and delta t values already, in textbased languages, I do not believe that there is not a waveform data type where this info is managed for you. Instead, an array of numbers is returned indexed by sample number.
The best way to go about getting that t0 value is going to be to commit the task, take a timestamp reading, and then start the task. Then you can use your sampling rate to determine your delta t value, and calculate each sample's timestamp from there.
Some examples functions for the timestamp are the TimeStr, which returns time in the string HH:MM:SS, or the GetSystemTime function, which returns time in 3 integer outputs- one for hours, one for minutes, and one for seconds.
With regards to the proper forum, I think this question might have been better suited to the Multifuction DAQ forum since this was a driver question, but this was fine.
Regards, Mallori M.