Documentation Home Page RT-LAB Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

SetSimulationMode

Group

Model Preparation

Description

Set the simulation mode. The specified simulation mode will be applied the next time the model is loaded. Simulation mode cannot be set when the model is already loaded.

Required Control

System Control

Usage

RtlabApi.SetSimulationMode(simulationMode)

Input

  • simulationMode: See OP_REALTIME_MODE.

Output

None

Exception

  • EPERM: System control had not been granted to this client.

  • ENOENT: Could not write the simulation mode to the configuration file.

  • EBADF: Model not specified by previous Connect or OpenProject.

  • EIO: Error sending the request or receiving the reply.

Examples

None

Related Items

GetModelState

Modules

import RtlabApi

 

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323