12-22-2019 07:27 PM
While using the 'Add' function to create a channel with type "DataTypeFloat64" like below:
set oMyChannel = Data.Root.ChannelGroups(n).Channels.Add("New",DataTypeFloat64)
Then using the Descriptive Statistics function to get the value for the dot in channel
oMyChannel.value(i) = ChnStatisticsChannelCalc("'[n]/Pdc' ",32,0,0,0,1,0,"NameName")
DIAdem will alarm like this" This channel was created with the type DataTypeFloat64. The filling values that you use must not be type vbObject.'
01-06-2020 09:31 AM
oMyChannel.value(i) = ChnStatisticsChannelCalc("'[n]/Pdc' ",32,0,0,0,1,0,"NameName").Item(1).Values(1)