DIAdem Help

Property: ByteOrder for BinaryChannelFormatter

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

Property: ByteOrder for BinaryChannelFormatter

Specifies the byte order for a channel in the file if the data type consists of several bytes.

Object.ByteOrder
ObjectBinaryChannelFormatter
Object with this property
Object.ByteOrderReceives the sequence of bytes in the file.
Enumeration with read and write access and the following selection terms:
 1
eLittleEndian 
The first byte is the higher-value byte.
 2
eBigEndian 
The last byte is the higher-value byte.

The following example interprets the first byte as the higher-value byte when the values of the MyChannel are read.

Dim oBinBlock : Set oBinBlock = File.GetBinaryBlock()
Dim oChn : Set oChn = oBinBlock.Channels.Add("MyChannel",eI16)
oChn.Factor = 5
oChn.Offset = 50
oChn.Formatter.ByteOrder = eBigEndian
Dim oMyGrp: Set oMyGrp = Root.ChannelGroups.Add("MyChannelGroup")
Call oMyGrp.Channels.AddDirectAccessChannel(oChn)