Main Content

sldiagviewer.reportInfo

Report information messages in Diagnostic Viewer

Description

example

output= sldiagviewer.reportInfo(Message)reports the message as information.

myStage= sldiagviewer.reportInfo(__,'Component'Value)specifies the name of the component.

Examples

collapse all

Create a stage and use thereportInfofunction to report a message as information in the Diagnostic Viewer for the specified model.

% Create a Stage to display all the messagesmy_stage = sldiagviewer.createStage('Analysis','ModelName','vdp');% Report a custom info message to Diagnostic Viewersldiagviewer.reportInfo ('Information message.','Component','Stateflow');
output = 1ogical 1

Input Arguments

collapse all

This message is displayed in the Diagnostic Viewer as an information.

Example:'This is a custom information message.'

The name of the component specified as the comma-separated pair consisting of 'Component' and a character vector or string.

Example:Stateflow

Output Arguments

collapse all

Shows whether the message was displayed successfully.

Version History

Introduced in R2014a