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 2 Next »

Group

Utilities
Description

Transfers files from the host development node to the target node using the FTP protocol. The FTP user used for the transfer is defined in the RT-LAB hardware configuration. The RTLAB hardware configuration can be modified through RT-LAB's MainControl sub-panels.

Required Control

None
Usage

RtlabApi.PutTargetFile(targetNodeName, sourceFile, targetPath, mode, logicalId)

Input
  • targetNodeName: Physical node name (as defined in RT-LAB hardware configuration).
  • sourceFile: Path and name of the file to be transferred (accepts wildcards).
  • targetPath: Path of the target directory where the file must be transferred.
  • mode: FTP file transfer mode (ascii or binary). See OP_FILE_TRANSFER_MODE.
  • logicalId: See Glossary. To specify all subsystem, set the logicalId to 0.

Output

None

Exception
  • EOK: Success.
  • EFAULT: Invalid parameter.
  • EBADF: Model not specified by previous Connect or SetCurrentModel.
  • EINVAL: Invalid subsystem id.
  • EIO: Error sending the request or receiving the reply.
ExamplesSee example file_transfer.
Related ItemsOP_FILE_TRANSFER_MODE, GetTargetFile.
Modulesimport RtlabApi
  • No labels