DIAdem Help

Property: Size for ImplicitChannel

  • Updated2024-09-12
  • 1 minute(s) read

Property: Size for ImplicitChannel

Specifies the number of values of an implicit channel.

Object.Size
ObjectImplicitChannel
Object with this property
Object.SizeLongInteger with read and write access

The following example reads in the generation instruction of an implicit channel and then generates this channel within the channel group MyChnGroup:

Dim ChannelName: ChannelName = File.GetNextStringValue(eString)
Dim StartValue : StartValue  = File.GetNextStringValue(eString)
Dim Increment  : Increment   = File.GetNextStringValue(eString)
Dim ChannelSize: ChannelSize = File.GetNextStringValue(eString)
Dim ChannelType: ChannelType = File.GetNextStringValue(eString)
If ChannelType = "eI32" Then
  Dim ChannelGroup : Set ChannelGroup = Root.ChannelGroupsAdd("MyChnGroup")
  Call ChannelGroup.Channels.AddImplicitChannel(ChannelName, StartValue, Increment, ChannelSize, eI32)  
Else
  Call RaiseError("InvalidTypeString " & ChannelType)
End If