Skip to main content

StartScenario

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

Function Syntax

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

Description

Starts the currently loaded scenario.

Parameters

Return Values

C#
  • true: Start of scenario was successful
  • false: Start of scenario failed
CAPL
  • 1: Start of scenario was successful
  • 0: Start of scenario failed

Example

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

CAPL

int result = ScenarioManager.StartScenario.Call();

C#

bool result = ScenarioManager.StartScenario.Call();