CreatePackage

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.

CreatePackage

Group

Utilities

Description

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.

CreatePackage supports creating of packages for eHS models under the following conditions:

  • Only OpCtrl workflow is supported.

  • All eHS artifacts such as bitstream files (*.bin, *.fsd, *..conf) must be located in the same directory as the model itself.

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.

  • EIO: File IO failed.

  • 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

 

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter