Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Group

Model Interaction, Control Signals

Description

Sets

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

These signals can be return by a call to

OpalGetControlSignals

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

had
  • has not been granted to this client.

  • EBADF: Model not specified by previous Connect

orSet CurrentModel
  • 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