DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

dateadd error

I am getting an error
"Calculation result isn"t a channel!"
when I run
Ch(#) := ("DateAdd(h,12,Ch(1)")
from the formula calculator.
I need to offset all time values in Ch1 by +12 hours and store results in next available channel. Dateadd is a vb function and must use the formcalc to execute in an automation.
What must I change?
Jim
0 Kudos
Message 1 of 3
(4,338 Views)
Jim,

This formula worked for me:

Ch(#) := ch(1) + 12*3600

Basically, it takes Channel 1 and adds 12 * 3600 ( = number of seconds in 12 hours) seconds and stores the result in channel #.

Hope that helps,

Otmar
Otmar D. Foehner
0 Kudos
Message 2 of 3
(4,338 Views)
That suggestion worked very well.
Thanks
0 Kudos
Message 3 of 3
(4,338 Views)