12-29-2014 01:38 PM
I need to change a time channel that has been recorded in LabView as hh:mm:ss format into minutes only while in Diadem. I have tried the analysis tools but I can not find anything that seems to work. I basically need to perform a math function on one channel similar to excel. Is there any way to do this in Diadem?
12-30-2014 01:58 PM
wils01,
If you really have a string channel from LabVIEW in the "hh:mm:ss" format, then this script will run the Calculator in DIAdem to create a "New DateTime" channel from the "StrChn" in the first group:
T1 = "[1]/StrChn" T2 = "New DateTime" Call Calculate("Ch(T2) = Str(Ch(T1), ""#hh:mm:ss"")") ChnFormat(T2) = "Time"
Brad Turpin
DIAdem Product Support Engineer
National Instruments