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

« Previous Version 3 Next »

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