Versions Compared

Key

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

Group

Model Interaction, Console

Description

Starts

Start execution of the Simulink console subsystem associated with the current connected model. Before calling this function, the client must call LoadConsole.

Background Colorcolor#D3D3D3
Note

Note: this function is only available on Windows

and Linux

operating system when the model contains a Simulink console subsystem. The

client

host machine must have Matlab

install

/Simulink installed.

Required Control

None

Usage

RtlabApi.ExecuteConsole()

Input

None

Output

None

Exception

  • EOK: Success.

  • EBADF: model not specified by previous Connect or SetCurrentMode

  • EINVAL: not a Simulink model

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

  • ENOENT: the model path and/or name is NULL.

  • EACCES: cannot access the modelname.subsys file (this file is generated during the model’s compilation)

  • OP_API_SEPARATION: the model doesn’t contain a Simulink console subsystem or the format of the *.subsys file is incorrect (this file is generated during the model’s compilation).

Examples

None

Related Items

LoadConsole, PauseConsole, ResetConsole, StopConsole

Modules

import RtlabApi