LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ConfigureLogging Timestamp TDMS

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: 

 

  1. Does this sound feasible?  
  2. In regards to post-processing we need to output to customer-defined text file where every sample is scaled & timestamped.   Are there any examples that would be helpful in regards to this?

 

Thank you,

 

0 Kudos
Message 1 of 2
(3,411 Views)

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

 

 

0 Kudos
Message 2 of 2
(3,388 Views)