How to use the DATA Inspector with SimScape model
8 ビュー (過去 30 日間)
古いコメントを表示
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.

0 件のコメント
回答 (2 件)
J Chen
2023 年 2 月 6 日
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.
0 件のコメント
Abhishek
2025 年 5 月 28 日
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:
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Electrical Sensors についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!