Versions Compared

Key

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

Group

Model Interaction, Console

Description

Stop execution of the Simulink console subsystem associated with the current connected model. Before calling this function, the console must be executed.

Please note that this function is only available on Windows and Linux operating system when the model contains a Simulink console subsystem. The client machine must have Matlab install.

Required Control

None

Usage

RtlabApi.StopConsole()

Input

None

Output

None

Exception

  • EOK: Success.

  • EBADF: Model not specified by previous Connect or

SetCurrentMode
  • OpenProject.

  • 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 subsytem or the format of the *.subsys file is incorrect (this file is generated during the model’s compilation).

Examples

None

Related Items

ExecuteConsole, LoadConsole, PauseConsole, ResetConsole.

Modules

import RtlabApi