DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

how to put seconds and miliseconds together

Hi,
 
I need to put two channels together. One channel consits of the seconds and the other of the miliseconds.
0 Kudos
Message 1 of 2
(3,124 Views)

Hi reen,

DIAdem Date/Time stamp channels store values as DBLs, where the value is the number of fractional seconds sinche 0 AD.  So you can just add these two channels together to get the full precision.  Let's say that your two channels are called "Secs" and "Msecs", and you want to create a new channel called "Time"-- then you would execute:

Call FormulaCalc("Ch('Time'):= Ch('Secs') + Ch('Msecs')")
ChnFormat("Time") = "Time"

Ask if you have further questions,
Brad Turpin
DIAdem Product Support Engineer
National Instruments

0 Kudos
Message 2 of 2
(3,101 Views)