Datalogger.programreceivecancel(), Name, Description – Campbell Scientific LoggerNet Server SDK User Manual

Page 108: Com return values, Datalogger.programreceivestart(), Parameters

Advertising
background image

Section 17. CsiDatalogger Control Reference

Datalogger.programReceiveCancel()

Name

Datalogger.programReceiveCancel()

Description

This method attempts to cancel the programReceiveStart() command. Mixed-
array dataloggers will not recognize this request and will continue to transfer
their program even though the datalogger control is no longer receiving it.

COM Return Values

Table of Possible Values

Code Meaning

S_OK

Success: Normal return

Datalogger.programReceiveStart()

Name

Datalogger.programReceiveStart(String fileName)

Description

This method retrieves the current program from the connected datalogger and
saves that file as the specified filename. This event triggers
onProgramReceiveProgress(), and onProgramReceiveComplete(), during the
programReceive() and after the programReceive() respectively.

This method should only be called when the value of serverConnected, is true.
If not, this method will return

E_CSI_NOT_CONNECTED

.

Parameters

FileName: This location is the full path and name where the file will be saved.

COM Return Values

Table of Possible Values

Code Meaning

S_OK

Success: Normal return

E_CSI_BUSY

Error: A previous call to
programReceiveStart() has not completed

E_CSI_FAIL

Error: Unexpected error

E_CSI_NOT_CONNECTED

Error: Not connected to the LoggerNet server

17-10

Advertising