DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

sync different TDMS file with different samping rates

I have 2 TDMS files with data at different sampling rates.  The low-speed data file has a timestamp channel plus waveform data channels.  The high-speed data file has only waveform data channels.  I'd like to merge the timestamp channel plus 2 low-speed waveform data channels with the high-speed data file.  Then I want to graph everything with time on the x-axis.  Is this something to be done via scripts or should I write something in LabVIEW? 

0 Kudos
Message 1 of 6
(5,187 Views)

Hi faustina,

 

Do you want to graph all of this data against your particular timestamp channel, or can they be relative to the start time? If all of the channels are waveform, DIAdem will recognize that and import them as a Waveform Channel Type (pulling the X channel from dt of your waveform). Then you can just drag those data channels onto your graph in DIAdem and it will graph them all against Time.

 

If you want to use your specific timestamp channel, that should be possible with a script or LabVIEW. If you go the scripting route, you could use the Numeric <-> Waveform function to split your waveform channels into X and Y numeric channels and then graph all of your Y data channels against your time channel.

 

If that's not what you're looking for, you could post some example TDMS files that resemble your data so we're all on the same page.

 

Hope this helps!

 

https://www.linkedin.com/in/trentweaver
0 Kudos
Message 2 of 6
(5,159 Views)

yes, I want to graph all the data against the time channel.  Although the times are close, the start times for each file are different.

0 Kudos
Message 3 of 6
(5,118 Views)

also the dt for the waveform channels in the low-speed file are different from the dt for the waveform channels in the high-speed file.

0 Kudos
Message 4 of 6
(5,116 Views)

This is totally do-able.  It sounds like your low speed data, is somewhat non-deterministic, since you have a time for each sample, where the high speed is the waveform data type.  For this I'd suggest graphing each as seperate channels on an XY Graph.  Attached is an example that shows low speed data coming in at periodic rates, and high speed having data at a specified rate. 

 

High Speed Low Speed Same Graph.png

0 Kudos
Message 5 of 6
(5,105 Views)

Hi faustina,

 

Since DIAdem 2015 we have a function to synchronize the offset and time of data files. Please have a look at:

P1.png

 

P2.png

 

Greetings

Walter

 

0 Kudos
Message 6 of 6
(5,081 Views)