qc_simulate_load_model qc_switch_to_model navigation bar

Table of Contents

qc_simulate_switch_to_model

Simulates switching in one model while switching out another.

Syntax

qc_simulate_switch_to_model(model, reconfiguration_group) % Simulate switching to model from a model in the given group
qc_simulate_switch_to_model(model)                        % Simulate switching to model from a model in the default group (0)
qc_simulate_switch_to_model                               % Simulate switching to the current model from a model in the default group (0)
    

Description

Simulates dynamic reconfiguration in which one model is switched in and another model is switched out in normal simulation. If no reconfiguration group is specified then group 0 is used.

Parameters

model

A string indicating the name of the model to switch in. It should not be running in normal simulation. Use

bdroot

MATLAB Command Line

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

doc('bdroot')
to specify the current model if arguments will also be specified.

reconfiguration_group

The reconfiguration group of the running model to switch out. This function only checks models running a normal simulation. The reconfiguration group must be a non-negative integer.

Outputs

This function has no outputs.

Examples

qc_simulate_switch_to_model('q_a_lpbk'); % Switch to 'q_a_lpbk' model from one currently running
    

See Also

 

navigation bar