MATLAB Runtime Server | ![]() ![]() |
Setting the Global Error Behavior on a PC
When an untrapped error occurs on PC platforms, the Runtime Server reacts with the error behavior that you specify in the matlabrt.m
file. The syntax is
The three possible mode
values and the corresponding responses to an untrapped error are in the table below.
The Runtime Server defaults to the dialog
mode if matlabrt
does not specify an error behavior; dialog
is the recommended error behavior for a runtime application.
These three modes are described below. Note that the error mode setting is only effective when the application runs with the Runtime Server; if the application is running in commercial MATLAB, whether MATLAB emulates the Runtime Server or not, then untrapped errors are displayed in the command window. The difference between the Runtime Server and commercial MATLAB runtime emulation is explained in Emulating the Runtime Server. Also, the error mode setting does not apply to the execution of the matlabrt
file. When executing matlabrt
, the Runtime Server always halts when an error occurs.
![]() | Trapping Errors | Ignore Errors | ![]() |