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.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Group

Connection
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.
ExamplesRtlabApi.CreateConnection('rtdemo1/sm_computation/Gain Kd/Gain', 'Controller/Waveform Graph[0]')
Related ItemsDeleteConnection
Modulesimport RtlabApi
  • No labels