slxpinfo
Description
Examples
Get Information About Protected Model
Suppose you have a protected model named mymodel.slxp
. To return
a structure that provides information about the protected model, you would enter this
command.
report = slxpinfo("mymodel")
report = struct with fields: File: 'C:\mydir\mymodel.slxp' GeneratedReport: 'Off' ModelVersion: '1.2' SimulinkVersion: 'R2024b' SimulinkCoderVersion: '24.2 (R2024b) 25-Mar-2024' HDLCoderVersion: '' DateCreated: '2024-05-06T14:03:12Z' Platform: 'win64' Tag: 'GIT_COMMIT_27468#52@TEAM_A' ReadOnlyViewSupport: 'Off' SimulationSupport: 'On' CodeGenerationSupport: 'On' HDLCodeGenerationSupport: 'Off' ConcurrentTaskingSupport: 'Off' CodeInterface: 'Model reference' Target: 'ert' Obfuscation: 'On' GeneratedCodeContentType: 'Obfuscated source code'
The structure includes high-level information about the protected model. For example, the output includes the corresponding version of the design file, the date the protected model was created, and whether or not the protected model supports various functionalities.
Input Arguments
filename
— Protected model filename or path
character vector | string scalar
Protected model filename or path, specified as a character vector or string scalar.
The filename can include a partial path, complete path, relative path, or no path.
When you do not provide a path, the file extension (.slxp
) is
optional.
When multiple protected models 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: slxpinfo("mymodel")
Example: slxpinfo("mymodel.slxp")
Example: slxpinfo("mydir/mymodel.slxp")
Example: slxpinfo("C:/mydir/mymodel.slxp")
Data Types: char
| string
Output Arguments
fileinfo
— High-level protected model information
structure
High-level protected model information, returned as a structure.
The structure contains these fields:
File
— Full path of fileGeneratedReport
— Whether the protected model includes a reportModelVersion
— Corresponding version of the design fileSimulinkVersion
— Simulink® release used to generate the protected modelSimulinkCoderVersion
— Simulink Coder™ release used to generate code for the protected modelHDLCoderVersion
— HDL Coder™ release used to generate code for the protected modelDateCreated
— Creation date and time for the protected modelPlatform
— Platform used to generate the protected modelTag
— Tag with custom text to help identify the protected modelReadOnlyViewSupport
— Whether the protected model includes a read-only web viewSimulationSupport
— Whether a model that references the protected model can run in normal, accelerator, or rapid accelerator modeCodeGenerationSupport
— Whether a model that references the protected model can run in external mode and support C and C++ code generationHDLCodeGenerationSupport
— Whether a model that references the protected model supports HDL code generationConcurrentTaskingSupport
— Allow tasks to execute concurrently on target setting during model protectionCodeInterface
— Interface for the generated codeTarget
— Supported system target files based on the System target file (Simulink Coder) setting during model protection and additions by theSimulink.ProtectedModel.addTarget
(Simulink Coder) functionObfuscation
— Whether generated code is obfuscatedGeneratedCodeContentType
— Appearance of the generated code
When you use this function to get information about a protected model created in a
release before R2024b, the SimulinkCoderVersion
and
HDLCoderVersion
fields are empty regardless of the supported
functionality.
Alternative Functionality
When model protection generates a report for the protected model, open the report with the
Simulink.ProtectedModel.open
(Simulink Coder) function.
Version History
Introduced in R2024b
See Also
Tools
- Protected Model Creator (Simulink Coder)
Functions
Simulink.ModelReference.protect
(Simulink Coder)
Topics
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)