Versions Compared

Key

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

Group

Model Preparation

Description

Returns

Return 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

None

Usage

extraFiles = RtlabApi.GetExtraFiles (transferTime, logicalId)
( (pathName1, mode1), (pathName2, mode2), ...) = extraFiles

Input

  • transferTime: Specifies the moment during model compilation or load when the specified extra file is to be transferred or retrieved. See OP_EXTRA_FILE_TRANSFER_TIME.

  • logicalId: See Glossary. To specify all

subsystem
  • subsystems, set the logicalId to 0.

Output

  • extraFiles: Tuple of extra files. See OP_EXTRA_FILE.

Exception

  • EOK: Success.

  • EINVAL: 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 model.

Related Items

AddExtraFile, RemoveExtraFile, OP_EXTRA_FILE_TRANFER_TIME, OP_EXTRA_FILE

Modules

import RtlabApi