qc_update_model End of trail navigation bar

Table of Contents

qc_model_console

Opens a console to monitor a model's standard input and output.

Syntax

qc_model_console(model, 'all')      % Opens a console for all models for the given model's active target
qc_model_console(config_set, 'all') % Opens a console for all models for the target associated with the given configuration set
qc_model_console(model)             % Opens a console for the given model for its active target
qc_model_console(config_set)        % Opens a console for the model associated with a given configuration set
qc_model_console('all')             % Opens a console for all models for the current model's active target
qc_model_console                    % Opens a console for the current model for its active target
    

Description

Opens a console to monitor a model's standard input and output when the model runs on a QUARC target.

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.

Note that the standard output and error streams are buffered so output will not appear immediately unless the output streams are flushed using fflush(stdout) or fflush(stderr) in the code.

Parameters

model

A string indicating the name of the model for which to open a console eg. 'q_a_lpbk'.

config_set

A Simulink.ConfigSet configuration set from which to identify the model and target (see

getConfigSet

MATLAB Command Line

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

doc('getConfigSet')
).

all_option

Set to 'all' to make the console monitor all models.

Outputs

This function has no outputs.

Examples

qc_model_console('q_a_lpbk'); % Opens a console for the 'q_a_lpbk' model for its associated target.
    

See Also

 

navigation bar