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

Iso11783IL_TIMConnectSysVarToFunctionState

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long Iso11783IL_TIMConnectSysVarToFunctionState(dword functionID, char[] sysVarNameWithPath); // form 1
long Iso11783IL_TIMConnectSysVarToFunctionState(dbNode participant, dword functionID, char[] sysVarNameWithPath); // form 2

Description

Connects the automation state of a TIM function to a system variable.
  • State 0: Automation unavailable
  • State 1: Automation not ready
  • State 2: Automation ready to enable
  • State 3: Automation enabled
  • State 4: Automation pending
  • State 5: Active, not limited
  • State 6: Active, limited high
  • State 7: Active, limited low
  • State 14: Non-recoverable fault
  • State 15: Not available (parameter not supported or not configured for TIM)
If this function is used by a TIM client, the system variable only changes if the TIM function is assigned by the client. To release the connection between the system variable and the function, call the same method again with an empty string instead of the name of the system variable. You can also use the callback function Iso11783IL_TIMOnFunctionStateChanged if you are interested in the state of a function.

Parameters

  • functionID: Function ID of the function.
  • participant: TIM simulation node (TIM Client or TIM Server) to apply the function.
  • sysVarNameWithPath: Name of the system variable, all namespaces inclusive.

Return Values

  • 0: Property has been set successfully
  • < 0: An error has occurred, see error codes

Example

Iso11783IL_TIMConnectSysVarToFunctionState(0, "sysvarAuxValve1State");