DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Editing time channels from hh:mm:ss format to minutes only

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?

0 Kudos
Message 1 of 2
(4,746 Views)

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

0 Kudos
Message 2 of 2
(4,724 Views)