Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

How to store an AnalogWaveform in TDMS in scans

Hi,

 

I'm trying to read a time domain file from a Sony SIR 1000 recorder and place it in a TDMS file.

 

The file can contain up to 64 channels recorded with a samplerate of 24000Hz.

 

I currently parse the SONY data by reading a number of scans were each scan is 2048 samples.  I then use the AppendData method to store these scans in the TDMS file.  I set channel properties for samplerate etc.

 

This works really well, however, I would like to store the data as an AnalogWaveform.

 

I can set the timing property for the first scan from the samplerate and start time and date using the information encoded in the SONY file.  I set the data using the fromArray1D method and use the AppendData method to store this in the TDMS file but how would I create the timing property for the second and subsequent scans such that when read from the TDMS file I would obtain the complete waveform for plotting?

 

Any help would be appreciated

 

Steve

 

 

0 Kudos
Message 1 of 1
(3,211 Views)