Uploads a file from the target.

Namespace:  Quanser.Targets
Assembly:  Quanser.Targets (in Quanser.Targets.dll)

Syntax

Visual Basic (Declaration)
Public Function UploadFile ( _
	target_path As String, _
	callback As IUpload, _
	context As Object _
) As Integer
C#
public int UploadFile(
	string target_path,
	IUpload callback,
	Object context
)
Visual C++
public:
int UploadFile(
	String^ target_path, 
	IUpload^ callback, 
	Object^ context
)
JavaScript
function uploadFile(target_path, callback, context);

Parameters

target_path
Type: System..::.String
The path to the file on the target.
callback
Type: Quanser.Targets..::.IUpload
The interface whose methods are invoked as the file is uploaded.
context
Type: System..::.Object
An arbitrary value passed to the callback methods.

Return Value

Remarks

This method is used to upload a file from the QUARC target, such as a MAT file logged by the model. The file is uploaded in chunks, with the given callback being invoked for each chunk of the file uploaded. The context value is passed to the callback and may be an open File, for example, to which the chunks are written.

See Also