11-18-2008 04:18 PM
I am also very new to DIAdem.
Background:
I am starting with a binary file of an oscilloscope capture. I have converted it to a 1D array in a .VI that creates a .tdms file. The first element is "T0" (time the capture started - 9.6 microseconds in this case). The second element is "Delta T" (interval between datapoints, 200 nanoseconds). The number of datapoints is 5000. When I open the TDMS file in DIAdem VIEW. I see the waveform. The Y-axis is correct. The x-axis begins with zero and ends with 5000 (I assume it is using the points to scale it).
Question:
Is there a way to have DIAdem see and use the "T0, delta T, and Length properties in the tdms file to automatically calculate and scale the x-axis? I would like to do this without creating a additional time array/channel as this would double my database size. When I'm in VIEW, I see the default properties of my waveform on the right. I can also get it to list my custom properties (T0, delta T). Would I need to create a script to use my custom properties?
Thank you
11-20-2008 09:15 AM
Hi RKinOR,
It would be pretty straightforward to create a VBScript to dig out the first two values of each channel, delete them from the channel, then convert the numeric array channel into a DIAdem waveform channel using those two values as t0 and tDelta. But really, the elegant way to do this is in LabVIEW so that you don't have to run a VBScript at all in DIAdem. The TDMS file format and VIs fully support waveform channels. Just create brown waveform wires in your LabVIEW code and connect them up to the "TDMS Write.vi" instead of orange arrays. Then when you load the TDMS file in DIAdem you will get waveform channels.
Ask if you have additional questions,
Brad Turpin
DIAdem Produt Support Engineer
National Instruments