Versions Compared

Key

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

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

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