CAPL Script

IsSimulated

Syntax

long isSimulated()

Function

This function is used to get the information if CANoe is in simulated mode.

Parameters

Return Values

1: True, CANoe is in simulated mode.

0: False, CANoe is in real mode.

This example checks if CANoe is in simulated mode. Then the test is not executed. // do not activate test when running in simulated modeif (isSimulated()){Write("Test cannot run in simulated mode!");}