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.

SetNodeCpu

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 Connect or 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

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323