09-10-2007 12:20 PM
09-11-2007 01:36 PM - edited 09-11-2007 01:36 PM
Hello Adrien,
The DAQmx driver will actually get t0 from the system clock. Once the DAQmx Read is done retrieving data, it will call the system clock from the computer and will calculate t0 depending on how many samples it acquires. The DAQmx driver is assuming that all of the samples are continuous and will use dt to calculate the time of each sample.
This is why your t0 and dt may not be accurate if there is a long delay between DAQmx Reads or when you start the task. LabVIEW takes this information and assumptions to develop the header information. In order to get the same information, you will need to call the system clock and derive the t0 of your acquisition.
Message Edited by Robert F on 09-11-2007 01:37 PM
06-04-2014 06:18 AM
iFile = OpenFile (sLinTableFile, VAL_WRITE_ONLY, VAL_APPEND, VAL_ASCII);// "E:\autoo\xducer.txt"
sprintf (msg, "%s [%s]: Your line of data", DateStr (), TimeStr ());
WriteLine (iFile, msg, -1);
CloseFile (iFile);
I TRIED THIS BUT AM GETTING
library function error(return value==-1[0xffffffff])
06-04-2014 06:36 AM
This error results from the call to OpenFile() ?
So how does sLinTableFile look like? Does the path name include double backslashes?