Main Content

slxcinfo

Query contents of Simulink cache files

Since R2020b

Description

fileinfo = slxcinfo(filename) returns the contents of the Simulink® cache file specified by filename. To describe the contents, the output table provides the Simulink model name, MATLAB® release, platform, and target type.

example

Examples

collapse all

Suppose you have a Simulink cache file named model.slxc. To return a table that lists the artifacts in the Simulink cache file, you would enter this command.

fileinfo = slxcinfo("model.slxc")
fileinfo =

  7×4 table

     Model     Release     Platform                  Target              
    _______    ________    ________    __________________________________

    "model"    "R2020a"    "all"       "Variable usage information"      
    "model"    "R2020a"    "win64"     "Rapid accelerator target"        
    "model"    "R2020a"    "win64"     "Accelerator target"              
    "model"    "R2020b"    "all"       "Variable usage information"      
    "model"    "R2020b"    "win64"     "Rapid accelerator target"        
    "model"    "R2020b"    "win64"     "Accelerator target"              
    "model"    "R2020b"    "win64"     "grt | Top model | Model specific"

For each artifact, the table provides the corresponding Simulink model name, MATLAB release, platform, and target type.

Input Arguments

collapse all

Filename or path of the Simulink cache file, including the .slxc extension, specified as a character vector or string scalar.

The filename can include a partial path, complete path, relative path, or no path.

When multiple Simulink cache files with the same name are on the MATLAB path, the function uses the file higher on the path. For more information, see Shadowed Files.

Example: slxcinfo("mymodel.slxc")

Example: slxcinfo("mydir/mymodel.slxc")

Example: slxcinfo("C:/mydir/mymodel.slxc")

Data Types: char | string

Output Arguments

collapse all

Simulink cache file contents, returned as a MATLAB table.

Each row of the table includes the corresponding Simulink model name, MATLAB release, platform, and target type.

Alternative Functionality

In the Current Folder browser, double-click the Simulink cache file to open the Simulink cache report.

Version History

Introduced in R2020b