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.

DeleteConnection

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)
paths1 = a string or tuple of strings
paths2 = a string or tuple of strings

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')

Output

None

Exception

  • EOK: success.

  • EINVAL: Invalid arguments specified.

Examples

Delete a specific connection between two datapoints:

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

Delete all existing connections:

  • RtlabApi.DeleteConnection('*', '*')

Related Items

CreateConnection

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