Extensions.BusMonitoring.GetBusFrameAddress
Jump to navigation
Jump to search
Contents
Classification
Name | GetBusFrameAddress |
Short Description | Accepts an BusFrame and returns an otx:Integer that represents the frame address |
Class | Term |
Extension | OTX BusMonitoring extension |
Group | BusMonitoring related Terms |
Exceptions | |
Checker Rules | - |
Standard Compliant | Yes |
OTL Syntax
IntegerTerm BusMonitoring.GetBusFrameAddress(BusFrameTerm frame);
Description
The GetBusFrameAddress term accepts an BusFrame and returns an otx:Integer that represents the frame address (e.g. in case of CAN bus the 8 address bytes are converted (two's complement and little endian)).
Return Value
The Term returns the value, see table below.
In OTX, Terms are categorized according to its return data type!
Data Type | Description |
otx:Integer | Represents the frame address (e.g. in case of CAN bus the 8 address bytes are converted (two's complement and little endian)). |
Properties
Name | Data Type | Class | Default | Cardinality | Description |
frame | BusFrame | Term | - | [1..1] | Represents a BusFrame to get the address from. |
OTL Examples
/// Local Declarations
BusMonitoring.BusMonitor BusMonitor1;
List<BusMonitor.BusFrame> List1;
Integer Integer1;
Integer Integer2;
/// Flow
BusMonitoring.StartBusMonitoring(BusMonitor1);
List2 = BusMonitoring.FetchBusMonitorBusFrames(BusMonitor1);
foreach (Integer2 in List1) : ForEachLoop1
{
Integer1 = BusMonitoring.GetBusFrameAddress(List1[Integer2]);
}
BusMonitoring.StopBusMonitoring(BusMonitor1);
See also
StartBusMonitoring
StopBusMonitoring
BusMonitorEventSource
FetchBusMonitorBusFrames
GetBusFrameAsString
GetBusFrameData
GetBusFrameTimestamp
GetBusFrameType
IsBusMonitorEvent