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.

SetControlSignals

Group

Model Interaction, Control Signals

Description

Set the current values of the control signals sent to the computation node subsystem.

These signals can be return by a call to GetControlSignals.

The values are sent to the appropriate position at the output of the OpComm block, found in the subsystem with the specified logicalId, which receives its inputs from the model's console subsystem.

Required Control

Signal Control

Usage

values = (value1, value2, ...)

RtlabApi.SetControlSignals ( logicalId, values )

Input

  • logicalId: See Glossary.

  • values: Value of each signal.

Output

None

Exception

  • EOK: Success.

  • ENOMEM: Memory allocation error.

  • EINVAL: Invalid logicalId.

  • EPERM: Signal control has not been granted to this client.

  • EBADF: Model not specified by previous Connect or OpenProject.

  • EIO: Error sending the request or receiving the reply.

  • EACCES: No console found in the model. Unable to send signals to subsystems.

  • ESRCH: Model has not been compiled yet.

Examples

See the example control_signal.

Related Items

GetSignalControl, GetControlSignals

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