This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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. This function generates the file slrtinfo.m in the current folder.

summary = SimulinkRealTime.getSupportInfo

Get diagnostic information about a functioning target computer and real-time application. This function generates the files slrtinfo.m and SLRTDebug.m in the current folder.

summary = SimulinkRealTime.getSupportInfo('testmodel')

Get diagnostic information about a functioning target computer and real-time application after a fatal error and an automatic restart. 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.

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')

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 with these fields:

  • antivirus — The antivirus software of the development computer

  • compiler — The compiler name installed on the development computer

  • compilerPath — The compiler installation folder location

  • consoleLog — The contents of the top entry in the target computer console log

  • consoleLogStruct — A struct that contains sequence, attrib, and text fields for each console log entry

  • cpuInfo — The CPU information for the target computer

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

  • crashStatus — The value is 1 if the target computer had a fatal error, and otherwise 0

  • date — The date and time

  • dosTargetPing — The real-time kernel communication information

  • dosversion — The Windows version of the development computer

  • getPCIInfo — The PCI bus devices information for the target computer

  • hostname — The development computer name

  • kernelInfo — The real-time kernel information

  • kernelNames — The real-time kernel information

  • kernelTime — The real-time kernel information

  • matlabroot — The MATLAB® installation folder location

  • mexConfig — An array with these fields for each Mex compiler: Name, Manufacturer, Language, Version, Location, ShortName, Priority, Details, LinkerName, LinkerVersion, MexOpt

  • mexVerbose — The status of the search for available Mex compilers installed on the development computer

  • path — The MATLABpath

  • pwd — The current working folder

  • selfPing — The real-time kernel communication information

  • slrtroot — The Simulink Real-Time installation folder location

  • speedgoatver — The Speedgoat driver library version information if library installed, and otherwise does not appear

  • targetSettings — The target computer settings

  • ver — A struct that contains the Name, Version, Release, Date, and Licenses of the installed MathWorks products

Introduced in R2014a