qc_disconnect_model qc_set_simulation_mode navigation bar

Table of Contents

qc_get_simulation_mode

Gets the simulation mode of the model.

Syntax

mode = qc_get_simulation_mode(model) % Gets the simulation mode of the model
mode = qc_get_simulation_mode        % Gets the simulation mode of the current model
    

Description

Get the simulation mode of a model. The return value will be one of the following strings:

'normal' = the simulation mode of the model is Normal
'external' = the simulation mode of the model is External

This command is equivalent to reading 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, was passed as a single input argument.

Parameters

model

A string indicating the name of the model for which to get the simulation mode eg. 'q_a_lpbk'.

Outputs

mode

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

Examples

mode = qc_get_simulation_mode('q_a_lpbk'); % Get the 'q_a_lpbk' model simulation mode
    

See Also

 

navigation bar