La traduction de cette page n'est pas à jour. Cliquez ici pour voir la dernière version en anglais.
Visualiser les données en cours de simulation
Les blocs Scope et les Viewers de type Scope offrent un moyen rapide de visualiser les données de simulation au fil du temps. Lors du prototypage d'un modèle, connectez les signaux à un bloc Scope, simulez le modèle puis consultez les résultats dans une fenêtre Scope. Utilisez les résultats pour valider votre design. Si vous devez débugger votre modèle, utilisez des outils de type oscilloscope dans la fenêtre Scope, par exemple des déclencheurs (Triggers) et des mesures de curseurs (Cursor Measurements), pour localiser le problème. Pour en savoir plus, consultez la rubrique Prototype and Debug Models with Scopes.
Blocs
Scope | Display signals generated during simulation |
Floating Scope and Scope Viewer | Display signals generated during simulation without signal lines |
Record, XY Graph | Log data to the workspace, to a file, or both (depuis R2021a) |
Objets
TimeScopeConfiguration | Control Scope block appearance and behavior |
Outils
Simulation Data Inspector | Inspect and compare data and simulation results to validate and iterate model designs |
Fonctions
Simulink.sdi.addTrigger | Add trigger to signal to control display updates in the Simulation Data Inspector (depuis R2020b) |
Simulink.sdi.getTrigger | Get signal and trigger options for trigger configured in the Simulation Data Inspector (depuis R2020b) |
Simulink.sdi.removeTrigger | Remove trigger from signal in the Simulation Data Inspector (depuis R2020b) |
Simulink.sdi.setRecordData | Specify record mode for logging (depuis R2021a) |
Simulink.sdi.getRecordData | Check record mode for logging (depuis R2021a) |
Rubriques
- Common Scope Block Tasks
Step-by-step procedures of common scope tasks, including logging data, sharing scope images, and display manipulation.
- View Values of Parameters Set as Variables
Evaluate parameters defined as variables or variable expressions while editing a model and during simulation.
- Floating Scope and Scope Viewer Tasks
Step-by-step procedures for frequently carried out Floating Scope block and Scope viewer tasks.
- Control Scope Blocks Programmatically
This example shows how to control scopes with programming scripts.
- Sample Time with Scope Blocks
Understand sample time inheritance when using the Scope and Time Scope blocks.
- Decide How to Visualize Simulation Data
Choose the right visualization technique for each modeling and simulation task.
- Scope Blocks and Scope Viewer Overview
Choices about how to display simulation results graphically.
- Prototype and Debug Models with Scopes
Prototype and debug models by using scopes and scope measurements.
- Viewers and Generators Manager
Generate and visualize signals without blocks.
- Generate Signals Without Source Blocks
Step-by-step procedures for attaching, modifying, and removing signal generators.
- View Streaming Data in the Simulation Data Inspector
Control the time axis, display scaling, and display offset while data is streaming in the Simulation Data Inspector.
- Control Display of Streaming Data Using Triggers
Use triggers in the Simulation Data Inspector to control when plot displays update to display new data.
- Access Data in MATLAB Function During Simulation
Stream signal data to a MATLAB® callback function during simulation for processing and visualization.