Versions Compared

Key

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

Group

Model Preparation

Description

Returns

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

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