qc_download_model qc_remove_downloaded_model navigation bar

Table of Contents

qc_get_downloaded_models

Retrieves a list of the models that have been downloaded to a QUARC target.

Syntax

[models, err] = qc_get_downloaded_models(model)      % Models downloaded to the target associated with the model
[models, err] = qc_get_downloaded_models(config_set) % Models downloaded to the target associated with the configuration set
[models, err] = qc_get_downloaded_models(target_uri) % Models downloaded to target specified by the target URI
[models, err] = qc_get_downloaded_models             % Models downloaded to target associated with the current model
    

Description

Retrieves a list of the models that have been downloaded to a QUARC target and are available for loading. If a model is specified, then the target URI associated with the active configuration set of the model is used. If a configuration set is specified then its associated target URI is used. If a target URI is specified then it is used directly to access the target. If no target URI is specified then the target is identified by the settings for the active configuration of the currently selected model.

Parameters

model

A string indicating the name of the model from which to identify the target. eg. 'q_a_lpbk'.

config_set

A Simulink.ConfigSet configuration set (see getConfigSet)

target_uri

A string containing the URI used for communicating with the QUARC Target Manager on the target.

Outputs

models

A cell array of strings containing the names of the models that have been downloaded to the target.

err

Zero if the operation is successful. A negative error code otherwise. See qc_error and qc_get_error_message for handling error codes.

Examples

models = qc_get_downloaded_models; % Returns the models downloaded to the current model's target
    

See Also

 

navigation bar