Versions Compared

Key

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

Group

Model Preparation

Description

Returns

Return the list of subsystems in the current model: their name, their logical id and the name of the physical node on which each is assigned. The physical node name is an empty string when the subsystem has not yet been assigned to a physical node.

Required Control

None

Usage

(subsystemInfo1, subsystemInfo2, ...) = RtlabApi.GetSubsystemList()

(subsystemName, logicalId, physNodeName) = subsystemInfo1

...

Input

None

Output

  • subsystemInfo N: Tuple of information of the subsystem N.

  • subsysName: Name of the subsystem.

  • logicalId: Id of the subsystem. See Glossary.

  • physicalNodeName: Name of the physical node associated to the subsystem.

Exception

  • EOK: Success.

  • E2BIG: Specified storage not big enough to receive values.

  • EBADF: Model not specified by previous Connect or

SetCurrentModel
  • OpenProject.

  • ESRCH: Model has not been compiled yet.

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

Examples

See example configuration.

Related Items

None

Modules

import RtlabApi