Versions Compared

Key

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

Group

Utilities

Description

Creates

Create a package (zip) ready to be deployed on a target for executing the current model using python API.

The project must be first open (cf. OpenProject) and loadable before calling this function.

Required Control

System control (OP_FB_SYSTEM)

Usage

RtlabApi.CreatePackage(absoluteFilePathName, targetPlatform)

Input

  • absoluteFilePathName: Absolute file path of the package to be created

  • targetPlatform: See OP_TARGET_PLATFORM.

Output

None

Exception

  • EOK: Success.

  • OP_API_INVALID_PARAMETER: Missing absoluteFilePathName 

  • OP_API_OUT_OF_MEMORY: Not enough memory

  • OP_API_BAD_PATH: Invalid absoluteFilePathName 

  • OP_API_NOT_ENOUGH_PRIVILEGE: System Control not granted

  • OP_API_INVALID_TARGET_PLATFORM: Target platform not supported

  • OP_API_ENO_MODEL_NOT_LOADABLE: Missing model compilation

Examples

RtlabApi.OpenProject('rtdemo1')

RtlabApi.CreatePackage('C:\Temp\package_rtdemo1.zip', RtlabApi.REDHAWK64_TARGET)

Related Items

OpenProject, OP_TARGET_PLATFORM

Modules

import RtlabApi