This callback is invoked by the Target API when GetModelOutput(IModelOutput, Object) is first called.

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

Syntax

Visual Basic (Declaration)
Function ConsoleInitialize ( _
	target As Target, _
	model_output As Target..::.ModelOutput, _
	context As Object _
) As Integer
C#
int ConsoleInitialize(
	Target target,
	Target..::.ModelOutput model_output,
	Object context
)
Visual C++
int ConsoleInitialize(
	Target^ target, 
	Target..::.ModelOutput^ model_output, 
	Object^ context
)
JavaScript
function consoleInitialize(target, model_output, context);

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.

Return Value

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

Remarks

This callback is invoked by the Target API when GetModelOutput(IModelOutput, Object) is first called. It is called before any other callback is invoked and may be used for initialization.

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