IsSimulated
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
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.
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.
// do not activate test when running in simulated mode
if (isSimulated())
{
Write("Test cannot run in simulated mode!");
}