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.

GetTargetFile

Group

Utilities

Description

Transfer files from the target node to the host development node.

Required Control

None

Usage

RtlabApi.GetTargetFile (sourceNodeName, sourceFile, targetPath, mode, logicalId)

Input

  • sourceNodeName: Physical node name (defined in RT-LAB hardware configuration).

  • sourceFile: Path and name of the file to be transferred (accepts wildcards).

  • targetPath: Path (only) of the target directory.

  • mode: 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 OpenProject.

  • EINVAL: Invalid subsystem id.

  • EIO: Error sending the request or receiving the reply.

Examples

See example file_transfer.

Related Items

OP_FILE_TRANSFER_MODE, PutTargetFile.

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
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter