qc_get_simulation_mode qc_get_simulation_status navigation bar

Table of Contents

qc_set_simulation_mode

Sets the simulation mode of the model.

Syntax

qc_set_simulation_mode(model, mode) % Sets the simulation mode of the model
qc_set_simulation_mode(mode)        % Sets the simulation mode of the current model
    

Description

Sets the simulation mode of a model. Valid values for the MODE argument are:

'normal' = set the simulation mode of the model to Normal
'external' = set the simulation mode of the model to External

This command is equivalent to selecting Normal or External from the Simulation 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 for which to set the simulation mode eg. 'q_a_lpbk'.

mode

A string indicating the new simulation mode. It must be 'normal' or 'external'.

Outputs

This function has no outputs.

Examples

qc_set_simulation_mode('q_a_lpbk', 'normal'); % Set the 'q_a_lpbk' model simulation mode to Normal
    

See Also

 

navigation bar