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.

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

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. 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 or OpalSetCurrentModel.
  • 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.
ExamplesNone
Related ItemsGetNodeCpu.
Modulesimport RtlabApi
  • No labels