LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write waveform timestamps with data in TDMS file

Solved!
Go to solution

Hello,

 

I am attempting to write data from an array of waveform data derived from a multi sample DAQmx acquisition, but I have found where I have used the get date / time function within my while loop passed to a TDMS Write in series with another being passed the waveform data, that I have many more data points than timestamps, as I am getting a timestamp then the list of sampled points.

 

I am looking at using the timestamp data from the waveform, but I'm not sure how to make this work.  Attached is an example where I have attempted this, but just managed to obtain mismatched data types.

 

Could anyone please offer some advice on how to get the following structure in my file:

 

timestamp of sample | channel 1 sample | channel 2 sample | .... | channel N sample

 

Thanks

Dave 

0 Kudos
Message 1 of 3
(4,423 Views)
Solution
Accepted by djroseman
I'm not quite clear about your use case in the attached VI. However, you should give input of channel names to the 2 "TDMS Write" nodes since they have different type of raw data.
Message 2 of 3
(4,402 Views)

That was the thing I was missing - adding that built my file as expected.

 

Thanks for your assistance

 

Dave

0 Kudos
Message 3 of 3
(4,381 Views)