DIAdem Help

Property: BlockWidth for BinaryBlock

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

Property: BlockWidth for BinaryBlock

Specifies the number of bytes between two consecutive values of a block channel.

If the value is -1, the interval between the values is automatically calculated in relation to the channels in this block.

Object.BlockWidth
ObjectBinaryBlock
Object with this property
Object.BlockWidthLongInteger with read and write access

The following example reads a BinaryBlock from a file that contains four 32-bit integer channels. The block width is 16 which means that the example only uses the values of the first channel and skips the other channel values:

Dim oBlock : Set oBlock = File.GetBinaryBlock()
Dim oChannel1 : Set oChannel1 = oBlock.Channels.Add("Channel1", eI32)
oBlock.BlockWidth = 16
Dim oChannelGroup : Set oChannelGroup = Root.ChannelGroups.Add("MyChannelGroup")
Call oChannelGroup.Channels.AddDirectAccessChannel(oChannel1)