04-14-2009 01:03 PM
To all:
I have a quandary about obtaining X and Y data from a 1D array of Waveform. I can not use the standard waveform tools (get waveform XY for example). I get a message stating I am wiring different data types. And, if I try to get the data in array format starting with "TDMS read", it only returns the values, not the time stamp or the data point numbers.
So, I am scratching my head how to extract this information without building a new array with the appropriate information. All other post I read indicate using the waveform tools or assigning a type of data to beging with.
The TDMS file I am reading has properties that were written: sample clock rate and author. Might these values have something to do with it?
thanks for any advice. I have attached a jpg of the block diagram section I would like to manipulate
AL
Solved! Go to Solution.
04-14-2009 01:22 PM
You will need to use Get Waveform Components. The waveform has 3 major pieces of information: the Y array waveform, T0 (initial timestamp of the initial element), and dt (timing between samples.) A 4th less commonly used element is a variant called Attributes.
Use T0 and dt along with the size of the Y array, and you could build another array that has a corresponding time for each sample in the Y array.
04-14-2009 02:14 PM
Thanks for your reply Ravens Fan,
However, I can not use the waveform tools to extract the components. And is the source of my question.
I have attached a JPG of the resulting problem if I use the "Get Waveform Components" VI.
04-14-2009 02:18 PM
04-14-2009 02:26 PM
Thanks Ravens Fan,
that was the step I did not understand. indexing the 1D array of waveform worked.
thanks
04-14-2009 02:37 PM