qc_load_model qc_get_loaded_models navigation bar

Table of Contents

qc_load_model_at_boot

Configures a model to load on a QUARC target at boot time.

Syntax

result = qc_load_model_at_boot(model, arguments) % Load code for model with specified arguments at boot time
result = qc_load_model_at_boot(model)            % Load code for model with external mode arguments at boot time
result = qc_load_model_at_boot                   % Load code for the current model with external mode arguments at boot time
    

Description

Configures the code generated from a model to load on a QUARC target at boot time. The code is assumed to be downloaded to the target already. If no arguments are specified then the arguments specified in the external mode MEX arguments in the Code Generation/Interface configuration pane are used. If no model is specified then the currently selected model is used. The target is identified by the settings for the active configuration for the model. Substitutions on the model arguments are performed as described in the help for qc_get_model_arguments.

Parameters

model

A string indicating the name of the model to load at boot. eg. 'q_a_lpbk'. Use

bdroot

MATLAB Command Line

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

doc('bdroot')
to specify the current model if arguments will also be specified.

arguments

A string containing the model arguments. These arguments will override the arguments specified for Code Generation.

Outputs

result

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 output is assigned it issues an error on failure.

Examples

result = qc_load_model_at_boot('q_a_lpbk'); % Configures the q_a_lpbk model to load on the target at boot time.
    

See Also

 

navigation bar