メインコンテンツ

getCrashStack

Downloads and decodes crash stack core files from target computer and opens these in MATLAB editor

Description

files = getCrashStack(target_object,model_name) downloads and decodes crash stack core files from the target computer for the model and returns the files struct that contains the decoded stack trace. The decoded core files help you investigate issues that cause application crashes on the target computer. Use this function to download crash stack core files from the target computer for a model. To remove the crash stack core files from the target computer for a model, use deleteCoreFiles.

example

Examples

collapse all

Create a Target object tg. Connect to the target computer. Get and open any crash stack information for the model that is available on the target computer.

model = "slrt_ex_osc";
tg = slrealtime;
connect(tg);
my_files = getCrashStack(tg,model);

Input Arguments

collapse all

Object that represents target computer, specified as a Target object. The object provides access to methods that manipulate the target computer properties.

Example: tg

Example: 'slrt_ex_osc'

Data Types: char | string | handle

Output Arguments

collapse all

Holds file names created from downloaded and decoded core files.

Version History

Introduced in R2020b