SCP Init Receive.vi

'SCP Init Receive.vi' connector pane

SCP Init Receive.vi connector pane

Description

Initialize an SCP file download channel.

This will instruct the server to initiate the file transfer.

Note

This is a low-level VI whose usage is not typical. For quick 1-step downloads, use SCP EZ Receive.vi.

It is not necessary to call this VI when using the “EZ” VIs.

Inputs

cbool Localize Time?

Required

No

Default

True true

If True true, then the file’s File Info timestamp data is converted to the local machine timezone.

cu64 LabSSH Session

Required

Yes

SSH session refnum.

cstr Remote Path

Required

Yes

Remote filesystem path to requested file. This can be a relative path or an absolute path.

Examples
/home/user/data/data1.txt
./data/data1.txt

cerrcodeclst error in

Required

No

Default

No Error

Incoming error from previous VI call. Is passed through to error out.

Warning

LabVIEW will not execute Call Library Function Node if there is an error present on the wire. Ensure that there is no error prior to calling this VI – unexpected behavior will occur.

ci32 Timeout msec

Required

No

Default

5000

Amount of time in milliseconds to wait for a response from remote host before a timeout error occurs.

Outputs

iu64 LabSSH Session Out

Duplicate SSH session refnum.

icclst File Info

Contains metadata pertaining to the downloaded file.

Members:

iu32 Size

The size of the transferred file as reported by the server.

iu16 Permissions

The permissions of the downloaded file as reported by the server.

iatrn Modified Time

The last-modified timestamp of the file as reported by the server. If the Localize Time? input is True true, then this timestamp uses this machine’s local time zone. Otherwise, it is GMT.

iatrn Accessed Time

The last-accessed timestamp of the file as reported by the server. If the Localize Time? input is True true, then this timestamp uses this machine’s local time zone. Otherwise, it is GMT.

iu32 Byte Count

Size in bytes of downloaded file.

ierrcodeclst error out

Error (if any) resulting from this VI call.