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.
ConnectByName Deprecated
Group | Model selection |
---|---|
Description | Connect the API to an active model. Subsequent API calls refer to this model. When trying to establish a connection with a model when there are multiple models that correspond to the specified ModelName and ModelPath, a window is displayed prompting you to choose a model. This may occur when:
If exactMatch is true, connection is made when the model's original file name and extension are an exact match. If exactMatch is false any extension specified in modelName is ignored. If returnOnAmbiguity is true when the specified model name is found more than once, exception E2BIG is thrown. This function is deprecated. Use OpenProject instead. |
Required Control | None |
Usage | (instanceId, modelState) = RtlabApi.ConnectByName(modelName, modelPath, exactMatch, systemControl, returnOnAmbiguity) (instanceId, modelState) = RtlabApi.ConnectByName(modelName) |
Input |
|
Output |
|
Exception |
|
Examples | See the example basic_example1. |
Related Items | Disconnect, SetCurrentModel, GetActiveModel |
Modules | import RtlabApi |
OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter