Versions Compared

Key

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

Group

Model Preparation

Description

Get the cpu assignment option for a list of subsystems of the current model.

Note

Cpu assignment is not available for NT target

only

.

Required Control

None

Usage

subsystemNames = (subsystemName1, ...)

cpuOptions = RtlabApi.GetNodeCpu (subsystemNames)

cpuOption1, cpuOption2, ... = cpuOptions

or

cpuOption = RtlabApi.GetNodeCpu (subsystemName)

Input

  • subsystemNames: Tuple of the subsystem names.

Output

  • cpuOptions: Tuple of cpu numbers assigned to each subsystem. -1 value means automatic mode.

Exception

  • EPERM: System control had not been granted to this client.

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

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

  • ENOENT: Invalid subsystem name found in subsysName list parameter.

Examples

None

Related Items

SetNodeCpu

Modules

import RtlabApi