Property: ByteOrder for BinaryChannelFormatter
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Properties > Property: ByteOrder for BinaryChannelFormatter
Property: ByteOrder for BinaryChannelFormatter
Specifies the byte order for a channel in the file if the data type consists of several bytes.
Object.ByteOrder
| Object | BinaryChannelFormatter Object with this property | ||||||
| Object.ByteOrder | Receives the sequence of bytes in the file. Enumeration with read and write access and the following selection terms:
|
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)