qc_get_loaded_models qc_remove_model_loaded_at_boot navigation bar

Table of Contents

qc_get_models_loaded_at_boot

Retrieves a list of the models that configured to load on a QUARC target at boot time.

Syntax

[models, err] = qc_get_model_loaded_at_boot(model, options)      % Models loaded on the target associated with the model
[models, err] = qc_get_model_loaded_at_boot(config_set, options) % Models loaded on the target associated with the configuration set
[models, err] = qc_get_model_loaded_at_boot(target_uri, options) % Models loaded on target specified by the target URI
[models, err] = qc_get_model_loaded_at_boot(options)             % Models loaded on target associated with the current model
[models, err] = qc_get_model_loaded_at_boot(model)               % Models loaded on the target associated with the model
[models, err] = qc_get_model_loaded_at_boot(config_set)          % Models loaded on the target associated with the configuration set
[models, err] = qc_get_model_loaded_at_boot(target_uri)          % Models loaded on target specified by the target URI
[models, err] = qc_get_model_loaded_at_boot                      % Models loaded on target associated with the current model
    

Description

Retrieves a list of the models that are configured to load on a QUARC target when the target boots.

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.

To get the arguments passed to the model as well, pass the string 'command' as an additional argument, so that the command line for each model returned instead of the model names only.

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 from which to identify the target (see

getConfigSet

MATLAB Command Line

Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:

doc('getConfigSet')
).

target_uri

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

options

A string indicating options. The only options currently supported are:

'command' = return the model name and arguments rather than just the model name

Outputs

models

A cell array of strings containing the names of the models that have been configured to load on the target when the target boots.

err

Returns 0 on success and a negative error code on failure. See qc_error and qc_get_error_message for handling error codes. If no err output is assigned it issues an error on failure.

Examples

models = qc_get_model_loaded_at_boot; % Returns the models configure to load on the current model's target at boot
    

See Also

 

navigation bar