10-30-2015 04:32 PM
I'm know LabVIEW but not DIAdem and have never done scripting in DIAdem. I collected data in LabVIEW and wrote the channels in waveform format to TDMS files. In DIAdem I want to examime the timestamps with the same precision as my sampling rate; dt=1.0E-6. I've discovered that DIAdem has limited time precision http://digital.ni.com/public.nsf/allkb/535EA75FF4D32411862575EE007663B4 and it has been suggested that the timestamp be converted to DBL in LabVIEW and then read in DIAdem. So I wrote a VI that converts the waveform data in my original TDMS file to Y-values and DBL numeric timestamp and puts it in a new TDMS file. (see enclose VI)
I've looked at:
http://www.ni.com/example/30230/en/
http://digital.ni.com/public.nsf/allkb/90E9D446A041976586256C84006E4E83
and still don't understand how to convert my numeric timestamp to a #mm.dd.yy hh:nn:ss:ffffffff format in DIAdem. What am I missing?
10-31-2015 02:13 PM
1Hi faustina,
There's no way in DIAdem 2015 or previous versions to display datetime information with greater accuracy than 0.1ms. You can plot the data vs. datetime, but all the data points from 0.050ms to 0.149ms within the same hour:minute:second will be plotted in a vertical line at datetime = 0.100ms. If you choose to plot vs. relative (elapsed) time, displaying as a numeric value of seconds, then the only restriction is the resolution of the DBL data type, which is significantly better than 0.001ms.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
11-02-2015 06:27 PM
okay, is there a way to extract components of a timestamp in DIAdem? I noticed a VBS method DataPart. Can this apply to timestamp channels? Is it something that can be called from the Calculator or do I need to write a script?
11-03-2015 09:22 AM
Hi faustina,
If you're using the Calculator, then I'd suggest using the RTP() function.
Brad Turpin
DIAdem Product Support Engineer
National Instruments