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.

List of Functions Available for Each State

Page Content

Here are the functions available depending on RT-LAB’s state. Please note that certain functions are only available when RT-LAB model is in a specific state.

API states

Disconnected

This is the initial state of the API. In this state, you can get the list of active projects and either connect to one or create a new project instance.

  • Connect (deprecated)

  • ConnectByName (deprecated)

  • CreatePackage

  • ExportIOsConfiguration

  • GetActiveModels (deprecated)

  • GetActiveProjects

  • OpenGlobalConfiguration

  • OpenProject

  • SetCurrentModel (deprecated)

Connected

Once the API is connected, you can modify the model’s settings.

  • CloseProject

  • Disconnect (deprecated)

Model states

Unloaded

In this state, the model could be configured to prepare the simulation.

  • AddExtraFile

  • ImportConnections

  • ImportIOsConfiguration

  • InstallRtlab

  • Load

  • ModelClean

  • RemoveExtraFile

  • SetNodeCpu

  • SetNodeMapping

  • SetNodeXHP

  • SetSimulationMode

  • SetTargetPlatform

  • StartCompile2

  • UninstallRtlab

Compiling

In this state, settings cannot be modified.

  • AbortCompile

  • DisplayInformation

Loaded

When the model’s executable is started on a target, the model’s state becomes loaded. In this state, parameters and signals could be changed on the fly. Data acquisition could be performed for real-time or offline analysis.

Execute

  • GetAcqGroupSyncSignals

  • GetAcqTrigger

  • GetBlob

  • GetControlSignals

  • GetParametersByName

  • GetSignalsByName

  • GetValueByAlias

  • LoadParameters

  • Pause

  • PauseConsole

  • RearmAsyncAcq

  • Reset

  • SendBlob

  • SetAcqTrigger

  • SetControlSignals

  • SetParameters

  • SetParametersByName

  • SetSignalsByName

  • SetValueByAlias

  • SingleStep

  • Snapshot

Available at any model state

These functions could be called anytime when the API is connected to a model.

  • AddTarget

  • AddToSelection

  • Command

  • CreateAlias

  • CreateConnection

  • DeleteConnection

  • DeleteConnHandleExecuteConsole

  • ExecuteMatlabCmd

  • ExportConnections

  • FindObjectId

  • GetAcqBlockLastVal

  • GetAcqSampleTime

  • GetAcquisitionControl

  • GetAliasDescription

  • GetAttributes

  • GetBlobsControl

  • GetChildren

  • GetConfigurationControl

  • GetConnectionPointsForIO

  • GetConnectionsDescription

  • GetConnHandle

  • GetControlSignalsDescription

  • GetCurrentModel

  • GetDefaultAttributes

  • GetExtraFiles

  • GetInstalledMatlabReleases

  • GetIOInterfaces

  • GetIOsConfiguration

  • GetLastErrMsg

  • GetModelState

  • GetMonitoringControl

  • GetNodeCpu

  • GetNodeXHP

  • GetNumAcqGroup

  • GetNumSignalsForGroup

  • GetObjectType

  • GetParameterControl

  • GetParametersDescription

  • GetPauseTime

  • GetRtlabVersion

  • GetSelectedModel

  • GetSignalControl

  • GetSignalsDescription

  • GetPhysNodeList

  • GetStopTime

  • GetSubsystemList

  • GetSystemControl

  • GetTargetFile

  • GetTargetNodeSystemInfo

  • GetTargetPlatform

  • GetTimeInfo

  • OpalIsOriginalModelOpen

  • LoadAlias

  • LoadAliasDescription

  • LoadConsole

  • LoadOriginalModel

  • LoadParametersDescription

  • NewConnHandle

  • PauseConsole

  • Ping

  • PutTargetFile

  • RegisterDisplay

  • ReleaseFunctionControl

  • RemoveAlias

  • RemoveFromSelection

  • RemoveTarget

  • RenameAlias

  • ResetConsole

  • ResetOriginalModel

  • RestoreAttributes

  • SaveAlias

  • SaveParameters

  • SetAcqBlockLastVal

  • SetAcqWriteFile

  • SetAttributes

  • SetConnHandle

  • SetDecimationFactor

  • SetFillDecimation

  • SetMatlabRelease

  • SetNotificationCallback

  • SetNumberValues

  • SetPauseTime

  • SetTimeFactor

  • StartExecutable

  • StartTargetPythonScript

  • StopConsole

  • StopExecutable

  • SetStopTime

  • TakeFunctionControl

  • WaitExecutable

Groupings

The functions are divided into several types. These types refer to the order in which you interact with the model.

The available types are:

  • Model Selection - enables you to select current model

  • Model Preparation - enables you to prepare the model before execution

  • Model Execution - enables you to modify the model execution flow

  • Model Interaction - enables you to modify the model during execution

  • Model Configuration - enables you to modify the RT-LAB configuration

  • Utilities - enables you to access utilities functions

Generic

  • AddTarget

  • AddToSelection

  • Command

  • FindObjectId

  • GetAttributes

  • GetChildren

  • GetDefaultAttributes

  • GetObjectType

  • RemoveFromSelection

  • RestoreAttributese

  • SetAttributes

Model Selection

  • CloseProject

  • Connect

  • ConnectByName

  • DeleteConnHandle

  • Disconnect

  • GetActiveModels

  • GetActiveProjects

  • GetConnHandle

  • GetCurrentModel

  • GetSelectedModel

  • NewConnHandle

  • OpenProject

  • SetConnHandle

  • SetCurrentModel

Model Preparation

  • AbortCompile

  • AddExtraFile

  • CreateConnection

  • DeleteConnection

  • GetConnectionPointsForIO

  • GetConnectionsDescription

  • GetExtraFiles

  • GetIOInterfaces

  • GetIOsConfiguration

  • GetNodeXHP

  • GetPhysicalNodeList

  • GetSubsystemList

  • GetTargetPlatform

  • ImportConnections

  • ImportIOsConfiguration

  • ModelClean

  • OpenGlobalConfiguration

  • RemoveExtraFile

  • SetNodeCpu

  • SetNodeMapping

  • SetNodeXHP

  • SetSimulationMode

  • SetTargetPlatform

  • StartCompile2

Model Execution

  • Execute

  • GetModelState

  • GetPauseTime

  • GetStopTime

  • Load

  • Pause

  • Reset

  • SetPauseTime

  • SetStopTime

  • SetTimeFactor

  • SingleStep

Model Interaction

The functions of this type can be further categorized as follows:

  • alias

  • blobs

  • console

  • monitoring

  • original model

  • parameters

  • signals

Alias

These functions manage aliases.

  • CreateAlias

  • GetAliasDescription

  • GetValueByAlias

  • LoadAlias

  • LoadAliasDescription

  • RemoveAlias

  • RenameAlias

  • SaveAlias

  • SetValueByAlias

Blobs

These functions manage blobs.

The blobs are used to exchange data between the RT-LAB subsystem or between the host and the target.

  • GetBlob (C only)

  • GetBlobsControl (C only)

  • SendBlob (C only)

Console

  • ExecuteConsole

  • LoadConsole

  • PauseConsole

  • ResetConsole

  • StopConsole

Monitoring

  • GetMonitoringControl

  • Snapshot

Original Model

  • IsOriginalModelOpen

  • LoadOriginalModel

  • ResetOriginalModel

Parameters

  • GetParameterControl

  • GetParametersByName

  • GetParametersDescription

  • LoadParameters

  • LoadParametersDescription

  • SaveParameters

  • SetParameters

  • SetParametersByName

Signals

These functions manage signals. Control signals are signals that are transmitted by TCPIP from the console subsystem to the computation nodes. Acquisition signals are signals that are transmitted by TCPIP from computation nodes to the console subsystem (e.g. SC_xxx). For additional information please see Acquiring and Viewing Data in the RT-LAB User’s Guide.

  • GetAcqGroupSyncSignals

  • GetControlSignals

  • GetControlSignalsDescription

  • GetSignalControl

  • GetSignalsByName

  • GetSignalsDescription

  • SetControlSignals

  • SetSignalsByName

Model Configuration

This type can be further categorized as follows: Acquisition and system.

Acquisition

  • GetAcqBlockLastVal

  • GetAcqSampleTime

  • GetAcquisitionControl

  • GetAcqTrigger

  • GetNumAcqGroup

  • GetNumSignalsForGroup

  • RearmAsyncAcq

  • SetAcqBlockLastVal

  • SetAcqTrigger

  • SetAcqWriteFile

  • SetAsyncAcqOpts

  • SetDecimationFactor

  • SetDynSignalListForGroup

  • SetFillDecimation

  • SetMaxDynSignalForGroup

  • SetNumberValues

System

  • GetConfigurationControl

  • GetSystemControl

  • GetTimeInfo

Utilities

  • CreatePackage

  • DisplayInformation

  • GetInstalledMatlabReleases

  • ExecuteMatlabCmd

  • ExportConnections

  • ExportIOsConfiguration

  • GetLastErrMsg

  • GetRtlabVersion

  • GetTargetFile

  • GetTargetNodeSystemInfo

  • InstallRtlab

  • Ping

  • PutTargetFile

  • RegisterDisplay

  • ReleaseFunctionControl

  • RemoveTarget

  • SetMatlabRelease

  • SetNotificationCallback

  • StartExecutable

  • StartTargetPythonScript

  • StopExecutable

  • TakeFunctionControl

  • UninstallRtlab

  • WaitExecutable



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