ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

DIAdem Help

Property: Size for Channel <DataPlugin>

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

Property: Size for Channel <DataPlugin>

Returns the current number of values in a channel.

Object.Size
ObjectChannel <DataPlugin>
Object with this property
Object.SizeLongInteger with read access

The following example creates an implicit index channel for the MyChannel channel from the first channel group:

Dim oMyChn, bIndexChn
bIndexChn = FALSE
For Each oMyChn in Root.ChannelGroups(1).Channels
  If (oMyChn.Name="MyChannel") and not bIndexChn Then
    bIndexChn = TRUE
    Call Root.ChannelGroups(1).Channels.AddImplicitChannel("Index", 1, 1, oMyChn.Size, eI32)
  End If
Next