DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I access the value of the "createTime",or any other, root property?

Solved!
Go to solution
Solution
Accepted by topic author Kevin_McG

Hi Kevin,

 

If you created a DirectAccessChannel for both the Date column and the Time column, then you just need to add each to a ProcessedChannel, like this:

 

Set DateTimeChannel = Group.Channels.AddProcessedChannel("DateTime", eTime, eAddProcessor)
DateTimeChannel.Properties.Add "UnitString", "s"
jMax = UBound(ChanNames)
Set Block = File.GetStringBlock()
FOR j = 1 TO jMax
  Set Channel = Block.Channels.Add(ChanNames(j), ChanTypes(j))
  Channel.Properties.Add "Unit_String", ChanUnits(j)
  Select Case ChanNames(j)
    Case "Date", "Time"
      Call DateTimeChannel.Channels.Add(Channel)
    Case ELSE
      Call Group.Channels.AddDirectAccessChannel(Channel)
  End Select ' ChanNames(j)
NEXT ' j

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 11 of 11
(1,485 Views)