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 5 Current »

Group

Model Preparation

Description

Disconnect two paths of each other, if it is a list of paths, it disconnects paths with the same index in the tuple.

Required Control

None

Usage

RtLabApi.DeleteConnection(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 disconnection fails, otherwise it ignores the failure and tries the next pair of path, if any.

Output

None

Exception

  • EOK: success.

  • EINVAL: Invalid arguments specified.

Examples

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

Related Items

CreateConnection

Modules

import RtlabApi

  • No labels