qc_switch_to_model qc_start_model navigation bar

Table of Contents

qc_connect_model

Connects a model to its real-time code on a QUARC target in external mode.

Syntax

qc_connect_model(model) % Connects a model to its active target
qc_connect_model        % Connect the current model to its active target
    

Description

Connects a model to its associated real-time code on a QUARC target in external mode. The simulation mode of the model is changed to external mode if necessary.

This command is equivalent to selecting Connect to Target from the Simulation menu of the diagram. The code must be downloaded to the target already and it must have been compiled with the external mode interface selected in the Code Generation options.

If no model was specified then the current model as returned by

bdroot

MATLAB Command Line

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

doc bdroot
is used.

Parameters

model

A string indicating the name of the model to which to connect. If the model is not loaded on the target, it will be loaded.

Outputs

This function has no outputs.

Examples

qc_connect_model('q_a_lpbk'); % Connects to the 'q_a_lpbk' model on its associated target.
    

See Also

 

navigation bar