Skip to main content

IsScenarioStarted

Valid for: CANoe DE Note
This CAPL function is also available as C# function.

Function Syntax

C#
bool IsScenarioStarted.Call();
CAPL
int IsScenarioStarted.Call();

Description

Queries whether the currently loaded scenario has started.

Parameters

Return Values

C#
  • true: Scenario is started
  • false: Scenario is not started
CAPL
  • 1: Scenario is started
  • 0: Scenario is not started

Example

In the examples it is assumed in each case that a DO object of the type IScenarioManager was created.

CAPL

int result = ScenarioManager.IsScenarioStarted.Call();

C#

bool result = ScenarioManager.IsScenarioStarted.Call();