Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Group

Model Preparation

Description

Sets

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

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