Group | Model Selection |
---|---|
Description |
Create a new connection inside the API to an RT-LAB model. Subsequent API calls refer to this model. If connected to a different model, that connection is broken, and a connection is made to a new instance of the Controller. If the API is already connected to a different model, that connection is closed and a new connection is created to the specified model. |
| ||
Required Control | None | |
---|---|---|
Usage | (instanceId,) = RtlabApi.SetCurrentModel (modelPathNameExt) | |
Input |
| |
Output |
| |
Exception |
| |
Examples | None | |
Related Items | Disconnect, OP_API_INSTANCE_ID. | |
Modules | import RtlabApi |