qc_kill_model qc_get_simulation_mode navigation bar

Table of Contents

qc_disconnect_model

Disconnects a model from its real-time code on a QUARC target in external mode.

Syntax

qc_disconnect_model(model) % Disconnect a model from its active target
qc_disconnect_model        % Disconnect the current model from its active target
    

Description

Disconnects a model from its associated real-time code on a QUARC target in external mode. The simulation mode of the model is assumed to be external. Note that disconnecting a model does not stop the model. Use qc_stop_model to stop a model and disconnect from it.

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

If no model is specified then it behaves as if the currently selected 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
, was passed as a single input argument.

Parameters

model

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

Outputs

This function has no outputs.

Examples

qc_disconnect_model('q_a_lpbk'); % Disconnects the 'q_a_lpbk' model from its associated target.
    

See Also

 

navigation bar