La traduction de cette page n'est pas à jour. Cliquez ici pour voir la dernière version en anglais.
Gérer les données du design
Vous pouvez utiliser des variables MATLAB® pour configurer et gérer les signaux et les paramètres de bloc d'un modèle. Pour plus d'informations sur l'utilisation de variables dans les modèles, consultez la rubrique Symbol Resolution. Pour créer, modifier et gérer des variables, consultez la rubrique Create, Edit, and Manage Workspace Variables.
Vous pouvez stocker les variables de votre modèle dans l'espace de travail de base de MATLAB, l'espace de travail de votre modèle ou dans un dictionnaire de données. Pour décider où stocker les variables de votre modèle, consultez la rubrique Determine Where to Store Variables and Objects for Simulink Models.
Pour utiliser des variables afin de contrôler les caractéristiques des signaux et des paramètres tels que les types de données et les paramètres de génération de code, vous pouvez stocker les objets de données dans un espace de travail ou un dictionnaire de données. Consultez la rubrique Data Objects.
Fonctions
Classes
Rubriques
Stockage de données pour les modèles Simulink
- Determine Where to Store Variables and Objects for Simulink Models
Simulink data are objects and variables that you create in workspaces such as the base workspace or a data dictionary. Choose a technique to permanently store that data.
Stockage de données dans l'espace de travail du modèle
- Model Workspaces
Place variables and objects that a model uses in a workspace that only the model can access. - Change Model Workspace Data
When you store data in a model workspace, you choose a data source, such as the model file or an external MAT-file. To modify the variables at the source, you use a different procedure depending on the type of source that you selected. - Specify Source for Data in Model Workspace
Store variables and objects that a model uses in the model file or in a separate file. Optionally, store the variables and objects as code that you can modify.
Stockage de données dans un dictionnaire
- What Is a Data Dictionary?
Use a data dictionary to store external data for a model. - Import and Export Dictionary Data
Migrate data between a data dictionary and a MAT-file or MATLAB script file. - View and Revert Changes to Dictionary Data
Use a data dictionary to inspect and manage changes to model data. - Graphically Manage Shared Interfaces, Data Types, and Constants
To share interfaces, data types, and constants across components and compositions modeled in Simulink®, use the Architectural Data section of a data dictionary. - Migrate Models to Use Simulink Data Dictionary
Store variables and objects in data dictionaries. - Partition Dictionary Data Using Referenced Dictionaries
Create referenced dictionaries to store subsets of the data that a model or model hierarchy uses. - Partition Data for Model Reference Hierarchy Using Data Dictionaries
Compose a dictionary hierarchy based on a model reference hierarchy. - Attach Data Dictionary to Custom Libraries
Share data objects with Simulink block library users using attached data dictionary. - Attach Data Dictionary to Subsystem Reference
Use a Simulink data dictionary with child blocks and instances of your subsystem file. - Enumerations in Data Dictionary
Store enumerated type definitions and enumerated data in a data dictionary. - Store Data in Dictionary Programmatically
Use scripts and the command prompt to create and interact with data dictionaries.
Stockage de données dans des objets et des variables
- Create, Edit, and Manage Workspace Variables
Workspace variables enable you to share information, such as parameter values and data types, between blocks and models. Use different tools and techniques to create and manipulate workspace variables. - Edit and Manage Workspace Variables by Using Model Explorer
Find out which workspace variables are used by a model or block, find blocks that use a variable, find unused variables, and rename a variable everywhere it is used by blocks. Save and load variables from a separate file. - Data Objects
Specify properties for parameters, signals, and states, including parameter values, outside of a block diagram by using external data objects. - Symbol Resolution
You can control how blocks in a model resolve symbols to variables and objects that you create in workspaces. - Define Data Classes
Customize the way your model interacts with data (signals, parameters, and states) by creating your own class of data object. - Upgrade Level-1 Data Classes
Simulink no longer supports level-1 data classes. You must upgrade data classes that you created using the level-1 data class infrastructure, which was removed in a previous release.
Stockage de données dans des fichiers externes
- Create External File Adapter for Loading Variables into Simulink.SimulationInput Object
Define a custom file adapter that can be used by Simulink to load variables from an external file source into aSimulink.SimulationInput
object.