Downloads a model to the QUARC Target.
            
    Namespace: 
   Quanser.Targets
    Assembly:
   Quanser.Targets (in Quanser.Targets.dll)
 Syntax
Syntax
| Visual Basic (Declaration) | 
|---|
| Public Function DownloadModel ( _
	name As String, _
	generator As String, _
	path As String, _
	callback As IDownload, _
	context As Object _
) As Integer | 
| C# | 
|---|
| public int DownloadModel(
	string name,
	string generator,
	string path,
	IDownload callback,
	Object context
) | 
| Visual C++ | 
|---|
| public:
int DownloadModel(
	String^ name, 
	String^ generator, 
	String^ path, 
	IDownload^ callback, 
	Object^ context
) | 
| JavaScript | 
|---|
| function downloadModel(name, generator, path, callback, context); | 
Parameters
- name
- Type: System..::.String
 The name of the model.
- generator
- Type: System..::.String
 The name of the program which generated the model code e.g., "simulink".
- path
- Type: System..::.String
 The path to the model. This can be an abstract path and need not
            reference a file system, although it typically does.
- callback
- Type: Quanser.Targets..::.IDownload
 An interface that is invoked to get the code to download.
- context
- Type: System..::.Object
 An arbitrary value to pass to the callback.
Return Value
Returns the number of bytes of code downloaded. A negative error code is returned
            in the event of an error.
Remarks
 See Also
See Also