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

« Previous Version 3 Next »

Group

Utilities
Description

Creates 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 ItemsOpenProject, OP_TARGET_PLATFORM
Modulesimport RtlabApi
  • No labels