This callback is invoked when the model is terminated.
Namespace:
Quanser.TargetsAssembly: Quanser.Targets (in Quanser.Targets.dll)
Syntax
Visual Basic (Declaration) |
---|
Function ModelTerminated ( _ target As Target, _ model_output As Target..::.ModelOutput, _ context As Object, _ model As String, _ exit_code As Integer _ ) As Integer |
C# |
---|
int ModelTerminated( Target target, Target..::.ModelOutput model_output, Object context, string model, int exit_code ) |
Visual C++ |
---|
int ModelTerminated( Target^ target, Target..::.ModelOutput^ model_output, Object^ context, String^ model, int exit_code ) |
JavaScript |
---|
function modelTerminated(target, model_output, context, model, exit_code); |
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.
- exit_code
- Type: System..::.Int32
The exit code returned by the model.
Return Value
Remarks
This callback is invoked when the model is terminated. It is not called if the model is already unloaded at the time the GetModelOutput(IModelOutput, Object) method is invoked. However, it will be called if the model is loaded and then terminated again.
This method should return zero. Returning a negative error code will cause the GetModelOutput(IModelOutput, Object) method to return with that error code.