Documentation

SimulinkRealTime.getSupportInfo

Diagnostic information to troubleshoot configuration issues

Syntax

summary = SimulinkRealTime.getSupportInfo
summary = SimulinkRealTime.getSupportInfo(modelname)

Description

example

summary = SimulinkRealTime.getSupportInfo generates diagnostic information for troubleshooting Simulink® Real-Time™ issues. The function saves the information in the file slrtinfo.m in the current folder. If slrtinfo.m exists, the function overwrites it with the new information. The function returns a structure containing key diagnostic information.

If the target computer halted with a fatal error and saved crash data on its hard drive, SimulinkRealTime.getSupportInfo loads the crash data into a file on the development computer and reports the path to that file.

Calling SimulinkRealTime.getSupportInfo unloads your model and runs the diagnostic test slrttest. Before calling this function, stop executing your real-time application and unload it.

SimulinkRealTime.getSupportInfo can record information that is sensitive to your organization. Review this information before disclosing it to MathWorks®.

example

summary = SimulinkRealTime.getSupportInfo(modelname) generates and returns the same information as the function does when it is called without an argument. In addition, it generates the file SLRTDebug.m in the current folder. SLRTDebug.m contains the Simulink Configuration Parameter settings for model modelname.

Examples

collapse all

Get diagnostic information about a functioning target computer.

summary = SimulinkRealTime.getSupportInfo
---------- File created using the Simulink Real-Time ...
    support utility GETSUPPORTINFO ----------

 %% ---------- General Information ----------

 %% Current Time & Date: 15-Jun-2016 09:50:37
.
.
.
 %%   SLRTTEST test:   
Executing SLRTTEST 
This might take a couple of minutes ...
.
.
.
### Test Suite successfully finished

 %% ----------End test---------- 

This information has been saved in the text file slrtinfo.m ...
    in the current directory.
Please attach this text file to the Service Request you ...
    create at:'http://www.mathworks.com/support'

Note: slrtinfo.m may contain sensitive information. Please ...
    review before sending to MathWorks.

summary = 

  struct with fields:

                   date: '29-Jun-2016 17:11:15'
                    ver: [1×88 struct]
.
.
.
             getPCIInfo: [1×17 struct]
                cpuInfo: 'System Information…'
            crashStatus: 0
              crashInfo: 0

This function generates the file slrtinfo.m in the current folder.

Get diagnostic information about a functioning target computer and real-time application.

summary = SimulinkRealTime.getSupportInfo('testmodel')
---------- File created using the Simulink Real-Time ...
    support utility GETSUPPORTINFO ----------

 %% ---------- General Information ----------

 %% Current Time & Date: 15-Jun-2016 09:50:37
.
.
.
 %%   SLRTTEST test:   
Executing SLRTTEST 
This might take a couple of minutes ...
.
.
.
### Test Suite successfully finished

 %% ----------End test---------- 

This information has been saved in the text file slrtinfo.m ...
    in the current directory.
Please attach this text file to the Service Request you ...
    create at:'http://www.mathworks.com/support'

Note: slrtinfo.m may contain sensitive information. Please ...
    review before sending to MathWorks.

summary = 

  struct with fields:

                   date: '29-Jun-2016 17:11:15'
                    ver: [1×88 struct]
.
.
.
             getPCIInfo: [1×17 struct]
                cpuInfo: 'System Information…'
            crashStatus: 0
              crashInfo: 0

This function generates the files slrtinfo.m and SLRTDebug.m in the current folder.

Get diagnostic information about a functioning target computer and real-time application after a fatal error and an automatic restart.

Wait for the target computer to restart itself and display the error message.

Error: Target computer halted with an exception and restarted
automatically. To get information about the exception, call
SimulinkRealTime.crashInfo from MATLAB.

Call getSupportInfo to get full information about the target computer and real-time application.

summary = SimulinkRealTime.getSupportInfo('testmodel')
---------- File created using the Simulink Real-Time ...
    support utility GETSUPPORTINFO ----------

 %% ---------- General Information ----------

 %% Current Time & Date: 15-Jun-2016 09:50:37
.
.
.

 %%  ---------- Target Crash Information:  ---------- 
1

Crash information object saved as C:\Users\AppData\Local\...
    Temp\SLRTCrashInfo_2016_28_20_56_00_33.mat

--------------- Crash report ------------------
Crash time:        28-Jun-2016 20:56:00. Current target ...
    computer time: 28-Jun-2016 20:58:00
Model:             testmodel
Crash address:     2003B643
Model base:        20030000
File:              c:\pdbparsing\test_sfun.c, line 106
Function:          mdlOutputs
Message:           Found in model code


 %%   SLRTTEST test:   
Executing SLRTTEST 
This might take a couple of minutes ...
.
.
.
### Test Suite successfully finished

 %% ----------End test---------- 

This information has been saved in the text file slrtinfo.m ...
    in the current directory.
Please attach this text file to the Service Request you ...
    create at:'http://www.mathworks.com/support'

Note: slrtinfo.m may contain sensitive information. Please ...
    review before sending to MathWorks.

summary = 

   struct with fields:

                   date: '29-Jun-2016 17:11:15'
                    ver: [1×88 struct]
.
.
.
             getPCIInfo: [1×17 struct]
                cpuInfo: 'System Information…'
            crashStatus: 1
              crashInfo: [1×1 SimulinkRealTime.crashInfo]

This function generates the files slrtinfo.m and SLRTDebug.m in the current folder. It generates the file SLRTCrashInfo*.mat on the development computer hard drive.

Input Arguments

collapse all

Do not include a file extension in modelname.

Example: 'xpcosc'

Data Types: char

Output Arguments

collapse all

The function returns a struct containing the following information:

  • date — The current date

  • ver — Names and versions of the installed MathWorks products

  • path — The Windows® path

  • matlabroot — The location where MATLAB® is installed.

  • pwd — The current folder.

  • hostname — The name of the development computer

  • dosversion — The version of Windows installed on the development computer

  • antivirus — Information about antivirus software installed on the development computer

  • slrtroot — The location where Simulink Real-Time is installed

  • TargetSettings — The current target computer settings

  • Compiler — The name of the compiler installed on the development computer

  • CompilerPath — The location of the compiler installed on the development computer

  • Kernelnames, Kernelinfo — Internal kernel information

  • ArpEntries, Selfping, DosTargetPing, ArpEntriesAfterPing — Kernel communication information

  • getPCIInfo — Information about devices on the target computer PCI bus

  • cpuInfo — Information about the target computer CPU

  • crashStatus1 if the target computer had a fatal error, and otherwise 0.

  • crashInfo — Information about the fatal error if the target computer had a fatal error, and otherwise does not appear.

Introduced in R2014a

Was this topic helpful?