Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Get timestamp of each sample before writing to file

Hi,

I am using ContAcqVoltageSamples_IntClk_ToFile sample codebase for NI-9215. I have changed the volts data to raw data  and now I want to include timestamp for each row of the data that we write to the file. 

How can I do that. Could you please help me with a sample code in c#.

 

Example:

Timestamp,cDAQ9185-1F3B5F3Mod1/ai0,cDAQ9185-1F3B5F3Mod1/ai1,cDAQ9185-1F3B5F3Mod1/ai2,cDAQ9185-1F3B5F3Mod1/ai3,cDAQ9185-1F3B5F3Mod2/ai0,cDAQ9185-1F3B5F3Mod2/ai1,cDAQ9185-1F3B5F3Mod2/ai2,cDAQ9185-1F3B5F3Mod2/ai3

 02/18/2021 16:04:14:89,32768,32768,32768,32768,32768,32768,32768,32768

 

Thanks

Purnima

0 Kudos
Message 1 of 1
(941 Views)