Skip to main content
Open topic with navigation CAPL Functions » System Variables » sysEndVariableStructUpdate

sysEndVariableStructUpdate

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

Function Syntax

  • long sysEndVariableStructUpdate(char namespace[], char variable[]); // form 1
  • long sysEndVariableStructUpdate(sysvarName); // form 2

Description

Ends the update of several elements of a system variable of type struct or generic array. Use this function and the corresponding sysBeginVariableStructUpdate to change several elements at the same time without the variable having an intermediate value where only some elements are changed.

Parameters

  • namespace: Name of the namespace.
  • variable: Name of the variable. SysVarName: Name of the fully qualified name of the system variable, including all namespaces, separated by ”::”. The name must be preceded by “sysVar::”.
  • SysVarName: Name of the fully qualified name of the system variable, including all namespaces, separated by ”::”. The name must be preceded by “sysVar::”.

Return Values

  • 0: no error, function successful
  • -1: variable was not found

Example

sysEndVariableStructUpdate(sysvar::XCP::ECU_2::KL2);