Versions Compared

Key

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

Group

Model Interaction, Console

Description

Loads

Load on the client machine the console subsystem associated with the current connected model. Upon successful return, the console is opened. Only Simulink consoles are supported.

Note

Please note that this function is only available on Windows

and Linux

operating system when the model contains a console subsystem. Furthermore, if the model is a Simulink model, the client machine must have Matlab installed.

Required Control

None

Usage

RtlabApi.LoadConsole()

Input

None

Output

None

Exception

  • EOK: Success.

  • EINVAL: not a Simulink model.

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

  • EBADF: Model not specified by previous Connect or

SetCurrentModel
  • OpenProject.

  • 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).

  • EDOM: model version is different from Simulink version.

  • ERANGE: model version is not compatible with MATLAB version.

Examples

None

Related Items

ExecuteConsole, PauseConsole, ResetConsole, StopConsole

Modules

import RtlabApi