Gets a list of the models currently loaded on the target.

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

Syntax

Visual Basic (Declaration)
Public Sub GetLoadedModels ( _
	callback As IModelEnumeration, _
	context As Object _
)
C#
public void GetLoadedModels(
	IModelEnumeration callback,
	Object context
)
Visual C++
public:
void GetLoadedModels(
	IModelEnumeration^ callback, 
	Object^ context
)
JavaScript
function getLoadedModels(callback, context);

Parameters

callback
Type: Quanser.Targets..::.IModelEnumeration
The interface containing the methods to invoke for each model loaded.
context
Type: System..::.Object
An arbitrary value passed to the callback methods.

Remarks

This method enumerates the models currently loaded on the QUARC Target. It invokes the given callback for each model loaded on the target. Since the list of models loaded on the target can change at any time, this list must be treated as a snapshot of the target only.

The callback can be used to update a graphical user interface with a list of the models currently loaded on the target, for example.

See Also