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.

SetTargetPlatform

Group

Model Preparation

Description

Set the target platform where the model is to be compiled and executed.

Required Control

System control for local settings modifications.

Configuration control for global settings modifications.

Usage

RtlabApi.SetTargetPlatform (targetPlatform, scope_flag)

Input

  • targetPlatform: Value of target platform to save to configuration (See OP_TARGET_PLATFORM).

  • scope_flag: See OP_SETTING_FILE. Valid values are: 0 : local settings, 1 : global settings.

Output

None

Exception

  • EOK: Success.

  • EBADF: Model not specified by previous Connect or OpenProject.

  • ENOENT: Could not write the key value to the file.

  • ENOMEM: Not enough memory.

  • OP_API_ENO_TARGET_LICENSE: No license for the selected target.

  • OP_API_UPDATE_AVAILABLE: A new update is available for this selected target.

Examples

See the example configuration.

Related Items

GetConfigurationControl, GetSystemControl, GetTargetPlatform..

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