CAPL Script

InterfaceStatus

This reference collection includes Vector documentation reproduced with permission. Snippets may require configuration-specific symbols and are not all standalone programs. Sources and validation limits.

Syntax

void InterfaceStatus(long time, long channel, long status);

Function

The callback can be inserted in the sectionscallback functionorfunction. The callback occurs when the status of the connection to the interface hardware is changed (e.g. whenWindowsreports a lost connection to a CAN/WLAN gateway or to a WLAN interface hardware for Car2x communication).

Parameters

time Time, resolution 10us

channel The channel number

status Status of the channel Values:3015: The connection is lost

Return Values

—

Reference example from the CANoe 12 help. Check the required configuration, database objects and API availability in your installed version; this is not a recorded compiler or runtime test.

void InterfaceStatus(long time, long channel, long status)
{
   if(status == 3015)
   {
      write("Time %f s, channel %d: The connection to the interface is lost!", ((float)time)/100000.0, channel);
   }
   else
   {
      //other status is not yet supported
   }
}