sldiagviewer.reportError

Report error messages in Diagnostic Viewer

Description

example

output = sldiagviewer.reportError(Message) reports the message as an error.

Examples

collapse all

Create a stage and use the reportError function to report an error message in the Diagnostic Viewer for the specified model.

% Create a Stage to display all the messages

my_stage = sldiagviewer.createStage('Analysis', 'ModelName', 'vdp');

% Report a custom error message to Diagnostic Viewer

sldiagviewer.reportError('This is a custom error message.');

output =
     1ogical
      1

Input Arguments

collapse all

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

Example: 'This is a custom error message.'

Output Arguments

collapse all

Shows whether the message was displayed successfully.

Introduced in R2014a