qc_is_model_loaded qc_simulate_switch_to_model navigation bar

Table of Contents

qc_simulate_load_model

Simulates loading a model.

Syntax

qc_simulate_load_model(model, arguments) % Simulate loading model with specified arguments
qc_simulate_load_model(model)            % Simulate loading model with external mode arguments
qc_simulate_load_model                   % Simulate loading the current model with external mode arguments
    

Description

Simulates loading a model. The specified model is opened. If the "-w" option is not specified then the model is run immediately in normal simulation. The following model arguments are recognized:

-w = simply open the model rather than running it (wait for start)
-tf <time> = the final time, which is the time the model will stop

Parameters

model

A string indicating the name of the model to simulate loading. eg. 'q_a_lpbk'. Use bdroot to specify the current model if arguments will also be specified.

arguments

A string containing the model arguments. These arguments will override the arguments specified for Code Generation.

Outputs

This function has no outputs.

Examples

qc_simulate_load_model('q_a_lpbk'); % Simulate loading the 'q_a_lpbk' model
    

See Also

 

navigation bar