DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Property: ByteOrder for Formatter

Property: ByteOrder for Formatter

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

Object.ByteOrder
ObjectFormatter
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.

If the byte order is BigEndian, the last byte is the byte with the highest value. If the byte order is LittleEndian, the opposite applies. In the former case, the number 255 is FF 00 in hexadecimal, and in the latter case, it is 00 FF.

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

File.Formatter.ByteOrder = eBigEndian
Dim oBlock : Set oBlock = File.GetBinaryBlock()
Dim oChn1  : Set oChn1  = oBlock.Channels.Add("MyChannel1", eI32)
Dim oChn2  : Set oChn2  = oBlock.Channels.Add("MyChannel2", eI32)
Dim oMyGrp : Set oMyGrp = Root.ChannelGroups.Add("MyChannelGroup")
oMyGrp.Channels.AddDirectAccessChannel(oChn1)
oMyGrp.Channels.AddDirectAccessChannel(oChn2)
In This Section
Was this information helpful?