Skip to main content
Open topic with navigation

Iso11783IL_SetMessageProperty

CAPL Functions » ISO11783 » ISO11783 Interaction Layer » Iso11783IL_SetMessageProperty Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long Iso11783IL_SetMessageProperty( dbMsg msg, char propertyName[], long propertyValue);

Description

This function sets the internal property of a message.

Parameters

  • msg: Message name as defined in the database
  • propertyName: Name of property to be set
    • Value: “MessageCounterToContinue”
    • Description: Defines the next value of the intern message counter that will be sent. Applicable for the PGNs 0, 1024, 2816, 61469 and 61483 only (see Message Checksum and Message Counter). Valid values for propertyValue are 0 to 7 (PGN = 0) or 0 to 15 (all other applicable PGNs).
  • propertyValue: New value to be set for the property

Return Values

  • 0: Success (property has been set successfully)
  • < 0: IL Error Code

Example

if (Iso11783IL_SetMessageProperty(TSC1, "MessageCounterToContinue", 12) < 0)
{
  write("Can’t set message property ‘MessageCounterToContinue‘");
}