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.

GetTargetPlatform

Group

Model Preparation

Description

Return 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 OpenProject.

  • 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.

Examples

None

Related Items

SetTargetPlatform, OP_TARGET_PLATFORM, OP_SETTING_FILE

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