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.

AddExtraFile

Group

Model preparation

Description

This function adds a file to the list of files to be transferred or retrieved during one of the
following steps:

  • transfer of files during compilation from the host to the target

  • retrieval of files during compilation from the target to the host

  • transfer of files from the host to the target before the model is loaded

  • retrieval of files from the target to the host after the model is reset

Required Control

Configuration control. See GetSystemControl.

Usage

RtlabApi.AddExtraFile (transferTime, logicalID, filePathName, fileMode)

Input

  • transferTime: See OP_EXTRA_FILE_TRANSFER_TIME

  • logicalID: See Glossary. To specify all subsystem, set the logicalId to 0

  • filePathName: Extra file path and name

  • fileMode: File transfer type (ascii or binary). See OP_FILE_TRANSFER_MODE

Output

None

Exception

  • EOK: Success

  • EFAULT: Invalid parameter

  • EBADF: Model not specified by previous Connect or OpenProject.

  • EIO: Error sending the request or receiving the reply

  • ESRCH: Specified subsystem id not found

Examples

See example configuration.

Related Items

GetExtraFiles, RemoveExtraFile, OP_EXTRA_FILE_TRANSFER_TIME, OP_FILE_TRANSFER_MODE

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