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 4 Current »

Group

Model Preparation
Description

Returns the target platform for the local or global settings.

Required Control

None
Usage

targetPlatform = RtlabApi.GetTargetPlatform(scope_flag)

Input
  • scope_flag: See OP_SETTING_FILE. Valid values are: 0 : local settings, 1 : global settings.
Output
  • targetPlatform: Current target platform. See OP_TARGET_PLATFORM.
Exception
  • EOK: Success.
  • EINVAL: Target platform not found.
  • EBADF: Model not specified by previous Connect or SetCurrentModel.
  • ENOENT: Problem with the configuration file.
  • EPERM: Configuration Control not granted.
  • ENOMEM: Not enough memory.
  • OP_API_UPDATE_AVAILABLE: An update is available for this target platform.
ExamplesNone
Related ItemsSetTargetPlatform, OP_TARGET_PLATFORM, OP_SETTING_FILE
Modulesimport RtlabApi
  • No labels