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.

GetNodeCpu

Group

Model Preparation

Description

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

Cpu assignment is not available for NT target.

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

 

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter