How to use the DATA Inspector with SimScape model

9 次查看(过去 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.

回答(2 个)

J Chen
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.

Abhishek
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):
  1. Navigate to the "Modeling" tab and click on "Model Data Editor".
  2. 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.
  3. 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:

类别

Help CenterFile Exchange 中查找有关 Electrical Sensors 的更多信息

产品


版本

R2022b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by