Versions Compared

Key

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

Group

Model Preparation

Description

Set the cpu assignment option for a list of subsystems of the current model. The new option becomes valid as soon as the next Load command is completed.

Info

Cpu assignment is not available for NT target.

Required Control

System Control

Usage

subsystemNames = (subsystemName1, subsystemName2,...)

cpuOptions = (cpuOption1, cpuOption2, ...)

RtlabApi.SetNodeCpu (subsystemNames, cpuOptions)

or

RtlabApi.SetNodeCpu(subsystemName1, cpuOption1)

Input

  • subsysNames: Tuple of string with the subsystem names or a string with the subsystem name.

  • cpuOptions: Tuple of the cpu number assignment for the associated subsystem. -1 means automatic mode.

Output

None

Exception

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

  • EBADF: Model not specified by previous

OpalConnect
  • Connect or

OpalSetCurrentModel
  • OpenProject.

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

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

  • EINVAL: Unable to change the cpu assignment because of the model state.

Examples

None

Related Items

GetNodeCpu.

Modules

import RtlabApi