RemoteSlaveFile

MLModule
genre Remote
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll MLRemoteFileTransfer
definition MLRemoteFileTransfer.def
see also RemoteMasterFile
keywords transfer

Purpose

The module RemoteSlaveFile enables file transfers to and from remote modules executed on a different computer.

Usage

This module’s input must be connected with the output of a RemoteMasterFile module.

It will receive a file name from its master which will be translated into a temporary file name. One can receive these files from the master but also send files to the master if they are written in the location specified by File Name.

Details

The RemoteMasterFile module is normally executed locally, while the RemoteSlaveFile is executed remotely.

If a file/directory name is set in the RemoteMasterFile module, an appropriate temporary file/directory name is created in the slave module.

If Send is selected, the file/directory (with all contents) is sent to the counter-part module.

If With partners is set, all files/directories with the same base name (up to the first dot) are transmitted also.

If the master module transmits files, one must attach a field listener to the Received from Master! field to react on this condition, since this is an asynchronous operation.

Note that the temporary directory is removed when the master is disconnected (but not if the file name is changed).

Windows

Default Panel

../../../Modules/ML/MLRemoteFileTransfer/mhelp/Images/Screenshots/RemoteSlaveFile._default.png

Input Fields

input

name: input, type: RemoteFileTransfer(MLBase)

Parameter Fields

Visible Fields

File Name

name: fileName, type: String, persistent: no

Shows a temporary file or directory name base on the file name set in the master.

Send

name: send, type: Trigger

If pressed, all files/directories covered by File Name and With partners are being transmitted.

Received from Master!

name: received, type: Trigger

This field is triggered if files have been received from the master.

With partners

name: includePartnerFiles, type: Bool, default: TRUE

If checked, all files and directories with the same base name as the given file/directory are also sent when the Send button is pressed.