フィルターのクリア

Is it possible to have tags=signal name in Simulink?

4 ビュー (過去 30 日間)
Jean-Serge Cardinal
Jean-Serge Cardinal 2022 年 11 月 10 日
回答済み: Fangjun Jiang 2022 年 11 月 10 日
The Goto and From blocks in Simulink are not using the signal names, they have there own "tag" name, which is anoying. Is there a switch somewhere to make the signal name and tag name the same always?

回答 (1 件)

Fangjun Jiang
Fangjun Jiang 2022 年 11 月 10 日
No.
I could think of two reasons not to do that.
  1. In many models, many signal lines have no label (i.e. the "signal names" are empty or blank).
  2. I saw this problem happened quite a few times. In the model, there is a signal line with label (signal name) called "MySignal". It is resolved to a Simulink.Signal object called "MySignal" in the base workspace. If the tag of a Goto block is also set as "MySignal", then after a simulation, the saved signal logging "MySignal" would over-write the Simulink.Signal object "MySignal". There will be an error message for the next simulation.
There are measures available to avoid both. But considering these, I don't think "auto tagging signal name" is a good idea.

カテゴリ

Help Center および File ExchangeInteractive Model Editing についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by