La traduction de cette page n'est pas à jour. Cliquez ici pour voir la dernière version en anglais.
Enregistrement des données
Vous pouvez enregistrer les données de simulation dans l’espace de travail ou dans un fichier temporaire sur disque à des fins de débuggage et de vérification. L’enregistrement des données vous permet d’analyser l’évolution dans le temps des variables des blocs internes pendant la simulation. Par exemple, vous souhaitez peut-être vérifier que la pression dans un vérin hydraulique est supérieure à une certaine valeur minimale ou la comparer à la pression de la pompe. Si vous enregistrez les données, vous pouvez les interroger, les tracer et les analyser par la suite sans réexécuter la simulation.
Simscape™ Results Explorer est un outil interactif qui permet de parcourir et de tracer les résultats de l’enregistrement des données de simulation. Vous pouvez utiliser l’enregistrement de données et Simscape Results Explorer pour afficher les résultats de simulation au lieu d’ajouter des capteurs et des blocs Scope à votre modèle.
Outils
Simscape Results Explorer | Navigate and plot simulation data logging results |
Fonctions
simscape.logging.export | Save logged simulation data in MLDATX file |
simscape.logging.import | Create simulation log variable to access data in MLDATX file |
simscape.logging.plot | Plot logged simulation data for Node or Series |
simscape.logging.plotxy | Plot logged simulation data for one node or series against another |
simscape.logging.findNode | Find Node object corresponding to block or subsystem (depuis R2020a) |
simscape.logging.sli.findNode | (To be removed) Find Node object corresponding to block or
subsystem |
simscape.logging.findPath | Find path to node in logged simulation data tree (depuis R2020a) |
simscape.logging.sli.findPath | (To be removed) Find path to node in logged simulation data tree |
simscape.logging.timestamp | Determine whether simulation log is current or stale (depuis R2021a) |
sscexplore | Open Simscape Results Explorer to interact with logged simulation data |
sscprintzcs | Print zero crossing information for logged simulation data |
Objets
simscape.logging.Node | Hierarchy tree for simulation data |
simscape.logging.Series | Time-value series for simulation data |
Rubriques
- About Simscape Data Logging
You can log Simscape simulation data to the workspace, or to a temporary file on disk, for debugging and verification.
- Enable Simscape Data Logging for the Whole Model
Using data logging for the whole model is a best practice.
- Log Data for Selected Blocks Only
Instead of logging Simscape simulation data for the whole model, you can log data just for the selected blocks.
- Data Logging Options
Additional options for logging and displaying the simulation data.
- Stream Logging Data to Disk
When you log simulation data, you can stream the data to a temporary file on disk and have the workspace variable point to that temporary file.
- Saving and Retrieving Logged Simulation Data
Methods of storing logged simulation data for future use and retrieving it at a later time.
- Log, Navigate, and Plot Simulation Data
This example shows the basic workflow for logging simulation data for the whole model and then navigating and plotting the logged data using Simscape Results Explorer.
- Log and Plot Simulation Data
This example shows how you can log and plot simulation data instead of adding sensors to your model.
- Log Simulation Statistics
This example shows how you can access and analyze information on zero crossings during simulation.
- Log and View Simulation Data for Selected Blocks
This example shows how you can set your model to log simulation data for selected blocks only and how to view simulation data using Simscape Results Explorer.
- Plot Simulation Data in Different Units
When you display logged simulation data in Simscape Results Explorer, you can change the
y
-axis units directly on the plot. - Use Custom Units to Plot Simulation Data
This example shows how you can change to a custom unit display of logged simulation data.
- Indexing into Component Arrays
You can use command-line interface to index into an array of components, for example, to get or set operating point targets for a particular array member, or to plot simulation data.