Skip to main content
Open topic with navigation CAPL Functions » ISO11783 » Task Controller Interaction Layer (TC IL) » TCIL_GetState

TCIL_GetState

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

  • long TCIL_GetState(); // form 1
  • long TCIL_GetState(dbNode tc); // form 2

Description

Returns the current state of the TC IL.

Parameters

  • tc: TC simulation node to apply the function

Return Values

  • 0: Initialized
  • 1: Claiming
  • 2: Active
  • 3: Stopped
  • 4: Suspended
  • < 0: IL Error Code

Example

Example form 1
on key 's'
{
  long state;
  state = TCIL_GetState();
}