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

Version 1 Next »

Group

Model Preparation
Description

Sets 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 SetCurrentModel.
  • 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.
ExamplesSee the example configuration.
Related ItemsGetConfigurationControl, GetSystemControl, GetTargetPlatform..
Modulesimport RtlabApi
  • No labels