Skip to main content
Open topic with navigation CAPL Functions » ISO11783 » ISO11783 Interaction Layer » Iso11783IL_OPGetAttribute

Iso11783IL_OPGetAttribute

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long Iso11783IL_OPGetAttribute( dword objectID, dword attributeID ); // form 1
long Iso11783IL_OPGetAttribute( dbNode implement, dword objectID, dword attributeID ); // form 2

Description

The function returns a value of an object attribute from the local object pool. A Get Attribute command is not sent to the Virtual Terminal. The object must exist in the object pool and support the attribute ID.

Parameters

  • objectID: object identifier of an object in the object pool
  • attributeID: attribute identifier, see ISO11783-6
  • implement: Simulation node to apply the function.

Return Values

  • Integer value of the object.
  • If a value of 0 is returned, you can check with the function Iso11783IL_GetLastError if the function succeeded.

Example

LONG objType;
objType = Iso11783IL_OPGetAttribute( 1000, 0 );