03-24-2016 01:58 PM
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?
03-25-2016 09:47 AM
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!
03-28-2016 10:14 AM
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.
03-28-2016 10:16 AM
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.
03-28-2016 12:04 PM
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
03-29-2016 12:38 AM
Hi faustina,
Since DIAdem 2015 we have a function to synchronize the offset and time of data files. Please have a look at:
Greetings
Walter