This callback is invoked by the Target API when the model is downloaded.

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

Syntax

Visual Basic (Declaration)
Function ModelDownloaded ( _
	target As Target, _
	model_output As Target..::.ModelOutput, _
	context As Object, _
	model As String _
) As Integer
C#
int ModelDownloaded(
	Target target,
	Target..::.ModelOutput model_output,
	Object context,
	string model
)
Visual C++
int ModelDownloaded(
	Target^ target, 
	Target..::.ModelOutput^ model_output, 
	Object^ context, 
	String^ model
)
JavaScript
function modelDownloaded(target, model_output, context, model);

Parameters

target
Type: Quanser.Targets..::.Target
The target instance.
model_output
Type: Quanser.Targets..::.Target..::.ModelOutput
The instance referring to the standard output of the model.
context
Type: System..::.Object
The context passed to the GetModelOutput(IModelOutput, Object) method.
model
Type: System..::.String
The name of the model downloaded.

Return Value

Return zero if successful. Otherwise return a negative error code.

Remarks

This callback is invoked by the Target API when the model is downloaded. It is not called if the model is already downloaded at the time the GetModelOutput(IModelOutput, Object) method is invoked. However, it will be called if the model is downloaded again.

This method should return zero. Returning a negative error code will cause the GetModelOutput(IModelOutput, Object) method to return with that error code.

See Also