Create a stage to display diagnostic messages
creates a stage with the given stage name in the model specified. In the Diagnostic Viewer,
errors, warnings, and information messages are displayed in groups based on the operation,
such as model load, simulation, and build. These groups are called stages. When you create a
stage object, Simulink initializes the stage. When you close the stage object, Simulink
ends the stage. If you delete a parent stage object, the corresponding parent and its child
stage close in the Diagnostic Viewer.
myStage = sldiagviewer.createStage(
Create Stage and Display Diagnostic Messages
createStage function to create a stage to
display diagnostic messages in the Diagnostic Viewer.
% Create a Stage to display all the messages myStage = sldiagviewer.createStage('Analysis','ModelName','vdp');
myStage = Stage with no properties.
StageName — Name of stage
Name of the stage, specified as a character vector.
Value — Name of model
Name of model, specified as a comma-separated pair consisting of 'ModelName' and a character vector or string.
myStage — Handle to created stage
Handle to the created stage, returned as a stage object.