Property: Formatter for DirectAccessChannel
- Updated2024-09-12
- 1 minute(s) read
DataPlugin > Properties > Property: Formatter for DirectAccessChannel
Property: Formatter for DirectAccessChannel
Contains information about how the values of a DirectAccess channel are represented.
Set oAbstractChannelFormatter = Object.Formatter
Object | DirectAccessChannel Object with this property |
oAbstractChannelFormatter | AbstractChannelFormatter Returned object |
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.Formatter.ByteOrder = eBigEndian Dim oMyGrp: Set oMyGrp = Root.ChannelGroups.Add("MyChannelGroup") Call oMyGrp.Channels.AddDirectAccessChannel(oChn)