Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Group

Model Execution

Description

Starts

Start execution of the currently connected model. When in real-time mode, the execution rate is the model's sampling rate times the time factor.

Required Control

System Control

Usage

RtlabApi.Execute(timeFactor)

Input

  • timeFactor: Optional argument. See Glossary.

Output

None

Exception

  • EOK: Success.

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

  • EINVAL: Model not loaded.

  • EBADF: Model not specified by previous Connect or

SetCurrentModel
  • OpenProject.

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

  • OP_API_MODEL_IO_TIMEOUT: Timed out waiting for a reply from the model.

  • OP_API_MODEL_IO_ERROR: Model is missing some or all processes or subsystems.

Examples

See example basic_example1.

Related Items

Pause, GetSystemControl

Modules

import RtlabApi