qc_get_simulation_status qc_model_console navigation bar

Table of Contents

qc_update_model

Updates a model diagram, propagating workspace variable changes to real-time code.

Syntax

qc_update_model(model) % Update the given model
qc_update_model        % Update the current model
    

Description

Updates a model diagram. This command is useful for causing changes in Matlab workspace variables that are used in the model to be propagated to the real-time code when the model is connected in external mode.

This command is equivalent to selecting Update Diagram from the Edit menu of the diagram.

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 to update eg. 'q_a_lpbk'.

Outputs

This function has no outputs.

Examples

qc_update_model('q_a_lpbk'); % Updates the 'q_a_lpbk' model.
    

See Also

 

navigation bar