DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I adjust a time channel (start time and end time) in DIAdem?

Solved!
Go to solution

I want to adjust a time channel with 8 hours. Adjust the starting time from 03/16/2015 17:18:31 to 03/16/2015 09:18:31 (mm/dd/yyyy hh:mm:ss). Is there an easy way (as analysis or script)?

0 Kudos
Message 1 of 2
(4,714 Views)
Solution
Accepted by topic author Olem

Either use a script like this

 

Option Explicit

data.Root.Clear
dim chObj : set chObj = data.root.ChannelGroups.Add("group").Channels.Add("time",DataTypeChnDate)
chObj.Values(1) = CDate("03/16/2015 17:18:31")
dim chNr : chNr = chObj.Properties("number").Value

dim offsetInSeconds : offsetInSeconds = 8 * 60 * 60
Call ChnOffset(chNr,chNr,"free offset")

or use

   Analysis.Basic Mathematics.Offset Corrections

and add offset in seconds as "Add any offset"

Message 2 of 2
(4,706 Views)