The following functions are available to a user in order to interface their application to RT-LAB.
...
Group | Model Preparation |
---|---|
Description | This function adds a file to the list of files to be transferred or retrieved during one of the following steps:
|
Required Control | Configuration control |
Usage | int OpalAddExtraFile (OP_EXTRA_FILE_TRANSFER_TIME transferTime, unsigned short logicalId,char *filePathName,OP_FILE_TRANSFER_MODE fileMode); |
Input |
|
Output | None |
Return value |
|
Examples | See example configuration. |
Related items | OpalGetExtraFiles, OpalRemoveExtraFile, OP_EXTRA_FILE_TRANSFER_TIME, OP_FILE_TRANSFER_MODE |
OpalAddToSelection
Group | Utilities |
---|---|
Description | Given the object's reference ID, adds it to the selected items. |
Required Control | None |
Usage | int OpalAddToSelection(P_REF_ID *refId); |
Input |
|
Output | None |
Return value |
|
Examples | None |
Related items | None |
OpalCloseMetaController
Group | Utilities |
---|---|
Description | Close the currently running MetaController. This function should be called only once all projects have been closed and all clients have disconnected from running simulations. After invoking this function, most API calls will not be operational until the MetaController executable is started again. |
Required Control | None |
Usage | int OpalCloseMetaController(); |
Input | None |
Output | None |
Return value |
|
Examples | None |
Related items | None |
OpalCloseProject
Group | Model Selection |
---|---|
Description | Disconnects the API from the currently connected project and model. The model's state does not change as a result of this call. Any control granted to this client is revoked. |
Required Control | None |
Usage | void OpalCloseProject(void); |
Input | None |
Output | None |
Return value | None |
Examples | See example basic_example1. |
Related items | OpalGetActiveProjects, OpalConnect (deprecated), OpalConnectByName (deprecated), OpalSetCurrentModel, OpalOpenProject |
...
Group | Model Interaction, Control Signals |
---|---|
Description | Returns the current values of the control signals (see Glossary) sent to the computation nodes. These signals can be set by a call to OpalSetControlSignals. |
Required Control | None |
Usage | int OpalGetControlSignals(unsigned short logicalId,unsigned short allocatedSignals, unsigned short *numSignals, double values[]); |
Input |
|
Output |
|
Return value |
|
Examples | See example control_signal. |
Related items | OpalSetControlSignals |
OpalGetControlSignalsDescription
Group | Model Interaction, Signals |
---|---|
Description | Returns a set of basic information for each control signal (see Glossary). If there is no connection from the console to the specified subsystem, returns EOK and sets numSignals to 0. Memory for output structure has been allocated by the RT-LAB API. User must free this memory with a call to OpalFreeMemory. |
Required Control | None |
Usage | int OpalGetControlSignalsDescription(int *pSignalCnt,OP_SIGNAL_INFO **ppSignalInfoList); |
Input | None |
Output |
|
Return value |
|
Examples | See example control_signal. |
Related items | OpalGetControlSignals |
...
Group | Model and project selection |
---|---|
Description | Connects the API to an active project and contained models. Subsequent API calls refer to this project and models. |
Required Control | None |
Usage | int OpalOpenProject(constchar*projectPath, unsignedshortreturnOnAmbiguity, OP_API_INSTANCE_ID* instId); |
Input |
|
Output | None |
Return value |
|
Examples | See example basic_example1, 2, blob1.c, acquisition1.c |
Related items | OpalConnectByName (deprecated), OpalDisconnect (deprecated), OpalCloseProject |
...