qc_clean_model qc_get_downloaded_models navigation bar

Table of Contents

qc_download_model

Downloads the generated code for a model to a QUARC target.

Syntax

num_bytes = qc_download_model(model, directory) % Download code for model from specified directory
num_bytes = qc_download_model(model)            % Download code for model from current directory
num_bytes = qc_download_model                   % Download code for the current model from current directory
    

Description

Downloads the code generated from a model to a QUARC target. The code is assumed to be in the current directory unless a directory is explicitly specified. If no model is specified then the currently selected model is used and the generated code is assumed to reside in the current directory. The target is identified by the settings for the active configuration for the model.

Parameters

model

A string indicating the name of the model to download. eg. 'q_a_lpbk'.

directory

A string containing the path to the model code. If no directory is specified then the current Matlab directory is used.

Outputs

num_bytes

The number of bytes downloaded on success and a negative error code on failure. See qc_error and qc_get_error_message for handling error codes. If no output is assigned it issues an error on failure.

Examples

num_bytes = qc_download_model('q_a_lpbk'); % Returns the number of bytes downloaded.
    

See Also

 

navigation bar