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.

CreateConnection

Group

Model Preparation

Description

Connect two paths to each other, if it is a list of paths, it connects paths with the same index in the tuple.

Required Control

None

Usage

RtLabApi.CreateConnection(paths1, paths2, continueOnFailure)
paths1 = a string or tuple of strings
paths2 = a string or tuple of strings
continueOnFailure = bool

Input

  • paths1 and paths2: 

Each path element can be:
- A path to a signal or parameter in the model (ie. 'rtdemo1/sm_computation/Gain Kd/Gain')
- A path to a widget in a LabVIEW panel (ie. 'PID Controller/Reference')
- A path to a Waveform Graph in a LabVIEW panel on wanted plot (ie. 'PID Controller/Waveform Graph[0]')
- A path to an input or output of an I/Os (ie. 'Signal Generator/Sine Waves/Sine Wave 1/Output')
- An alias (ie. 'NameOfMyAlias')

  • continueOnFailure: If set to false, stops execution if any connection fails, otherwise it ignores the failure and tries the next pair of paths, if any.

Output

None

Exception

  • EOK: success.

  • EINVAL: Invalid arguments specified.

Examples

RtlabApi.CreateConnection('rtdemo1/sm_computation/Gain Kd/Gain', 'Controller/Waveform Graph[0]')

Related Items

DeleteConnection

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