getMessageAttrInt
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE Note: This function finds the value of the message attribute in the database again with each call. If the message is already known when the CAPL program is being written, the attribute should be found directly by its selector syntax (<Message variable>.<Attribute name> e.g. absData.msgCycleTime).
Function Syntax
Description
Gets the value of a message attribute from the database. A user-defined attribute with the name specified in the parameter, and of the Integer type, must be defined in the database. If no such attribute is defined, the function returns 0. If no attribute value is assigned to the message in the database, the default value of the attribute definition is returned.Parameters
- canMessage: Message variable
- attributeName: Attribute name