qc_simulate_switch_to_model qc_connect_model navigation bar

Table of Contents

qc_switch_to_model

Switches in one model on a target while switching out another.

Syntax

qc_switch_to_model(model, arguments, reconfiguration_group) % Switch in given model with specified arguments from a model in the given group
qc_switch_to_model(model, reconfiguration_group)            % Switch in given model from a model in the given group
qc_switch_to_model(model, arguments)                        % Switch in given model with specified arguments from a model in the default group (0)
qc_switch_to_model(model)                                   % Switch in given model from a model in the default group (0)
qc_switch_to_model                                          % Switch in current model from a model in the default group (0)
    

Description

Performs dynamic reconfiguration in which one model is switched in and another model is switched out on the target. If no reconfiguration group is specified then group 0 is used. The target is determined by the active configuration for the model.

If no arguments are specified then the arguments given in the Code Generation/Interface pane of the active configuration are used.

Parameters

model

A string indicating the name of the model to switch in. It should not be running on the target. Use bdroot to specify the current model if arguments will also be specified.

arguments

A string containing the model arguments to pass to the model being switched in. These arguments will override the arguments specified for Code Generation.

reconfiguration_group

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

Outputs

This function has no outputs.

Examples

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

See Also

 

navigation bar