Table of Contents
qc_model_console
Opens a console to monitor a model's standard input and output.
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
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
MATLAB Command Line
Click to copy the following command line to the clipboard. Then paste it in the MATLAB Command Window:
doc('bdroot')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.
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
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.
This function has no outputs.
qc_model_console('q_a_lpbk'); % Opens a console for the 'q_a_lpbk' model for its associated target.
See Also
Copyright ©2024 Quanser Inc. This page was generated 2024-10-17. Submit feedback to Quanser about this page.
Link to this page.