Switches to the given model on the target.

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

Syntax

Visual Basic (Declaration)
Public Sub SwitchToModel ( _
	name As String, _
	arguments As String, _
	group_id As UInteger _
)
C#
public void SwitchToModel(
	string name,
	string arguments,
	uint group_id
)
Visual C++
public:
void SwitchToModel(
	String^ name, 
	String^ arguments, 
	unsigned int group_id
)
JavaScript
function switchToModel(name, arguments, group_id);

Parameters

name
Type: System..::.String
The name of the model to load (switch in).
arguments
Type: System..::.String
The command-line arguments to pass to the model being loaded.
group_id
Type: System..::.UInt32
The reconfiguration group identifier for models to be terminated (switched out).

Remarks

This method terminates any model running on the QUARC Target that belongs to the given reconfiguration group, group_id. At the same time, it loads the new model on the target. The transition between the old model and the new model takes place extremely quickly and state information can be passed from one model to the other. This method is part of the dynamic reconfiguration support in QUARC.

See Also