04-24-2013 12:27 PM
Hello,
We are looking to streak DAQmx analog input data directly to disk using 'DAQmxConfigureLogging' function. The data will be post-processed after the collection. For time coorelation we plan on doing something like this:
// ----------------------------------------------
// write time stamp
// ----------------------------------------------
TDMS_CreateFileEx
TDMS_AddChannelGroup
TDMS_AddChannel // allocate 'TDMS_Timestamp' channel
get CVI time
TDMS_AppendDataValues // write CVI time to tdms file
TDMS_CloseFile
// ----------------------------------------------
// start daqmx task
// ----------------------------------------------
// configure daq task with the 'DAQmxConfigureLogging' function using TDMS file used in previous steps
// start daq task
Questions:
Thank you,
04-25-2013 02:34 PM
Hello,
It looks like you are on the right track. I would suggest looking into our example codes which do a similar task to what you describe here if you have not already. They are located at a location similar to the below path.
All Programs\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Analog In\Measure Voltage...
I hope this helps,
Eric