Table of Contents
qc_get_simulation_mode
Gets the simulation mode of the model.
mode = qc_get_simulation_mode(model) % Gets the simulation mode of the model mode = qc_get_simulation_mode % Gets the simulation mode of the current model
Get the simulation mode of a model. The return value will be one of the following strings:
'normal' | = | the simulation mode of the model is Normal |
'external' | = | the simulation mode of the model is External |
This command is equivalent to reading Normal or External from the Simulation menu of the diagram.
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')model
A string indicating the name of the model for which to get the simulation mode eg. 'q_a_lpbk
'.
mode
A string indicating the simulation mode. It will be 'normal
' or 'external
'.
mode = qc_get_simulation_mode('q_a_lpbk'); % Get the 'q_a_lpbk' model simulation mode
See Also
Copyright ©2024 Quanser Inc. This page was generated 2024-10-17. Submit feedback to Quanser about this page.
Link to this page.