How to use the DATA Inspector with SimScape model
显示 更早的评论
I'd like to use data inspector with SimScape model. How to assing (highlight) signal to be displayed in Data Inspector - "Log SIgnal"? I have attached the snippet of my SimScape Electrical Simulation - it's a pure SimScape with no classical simulink blocks.

回答(2 个)
J Chen
2023-2-6
0 个投票
You need to use Sensors and Transducers block to measure the variables, then convert the Simscape signals to the Simulink signals using "PS-Simulink Converter" block in the Utilities category.
Abhishek
2025-5-28
0 个投票
I understand you want to log specific signals from a Simscape model and visualize them in the Data Inspector. This can be achieved using the "Selective Logging" feature by following the below steps (reproduced in MATLAB R2024b):
- Navigate to the "Modeling" tab and click on "Model Data Editor".
- In the "Simscape Variables" tab of the Model Data Editor, check the "Log Data" option for each variable of the Simscape blocks whose signals needs to be logged. When logging is enabled for a block, a logging badge will appear on it.
- Run the simulation. The selected signals will be available for review in the "Data Inspector".
Please refer to the MATLAB documentation on “Selective Logging” to know more about it:
类别
在 帮助中心 和 File Exchange 中查找有关 Simscape 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!