Visualize Simscape Component Variables

Hello! I have recently started creating my own Simscape Components. In order to verify the correct operation of my simscape codes I need to visualize some internal variables. I can easily see them by associating an output port to each of these variables.
However, I would like to know if there is any alternative to see some of these variables without creating an specific output port for each of them (let's say 6 output ports for variables P, PCond, ESwOff, PSwOn, ESwOff, PSwOff in the figure above), generating some kind of global variables (see figure below).
Thanks in advance!

 採用された回答

Sabin
Sabin 2025 年 12 月 24 日

0 投票

Since R2020a, this can be done using Simscape Probe: https://www.mathworks.com/help/simscape/ref/probe.html

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeComposite Components についてさらに検索

質問済み:

2018 年 2 月 14 日

回答済み:

2025 年 12 月 24 日

Community Treasure Hunt

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

Start Hunting!

Translated by