How to remove atmoic subchart mask or block parameters?

2 ビュー (過去 30 日間)
Simeon Doyle
Simeon Doyle 2023 年 4 月 5 日
回答済み: Sandeep 2023 年 4 月 25 日
I deleted a couple of symbols in my stateflow atomic subchart and they somehow became parameters but I can't find their implementation anywhere. If I go to model explorer, the subchart now has a mask symbol and when I right-click to select properties, a dialog box called ''Block Parameters" shows those two parameters with ability to set values. But I cannot find anyway of reverting those changes - to delete the parameters, or mask.
How is it possible that a subchart can become a block and have a mask? And why is there no way of seeing these parameters anywehre else?

回答 (1 件)

Sandeep
Sandeep 2023 年 4 月 25 日
Hi Simeon Doyle,
It's possible that when you deleted the symbols in your Stateflow atomic subchart, you inadvertently created parameters. This can happen if the symbols you deleted were previously linked to parameters, or if they were used in a way that required a parameter to be created.
When this happens, the subchart can become a block with a mask symbol. This is because when a parameter is created in a subchart, a mask is automatically generated to provide a way of setting the parameter value.
To delete the parameters or mask, you can try the following steps:
  1. Open the Stateflow editor and select the subchart that contains the parameters.
  2. Right-click on the subchart and select "Properties" from the context menu.
  3. In the "Properties" dialog box, select the "Parameters" tab. This should show you a list of the parameters that have been created.
  4. To delete a parameter, select it from the list and click the "Remove" button.
  5. If you want to remove the mask symbol as well, you can select the "Mask" tab in the "Properties" dialog box and click the "Delete" button.
If the parameters are not visible in the "Parameters" tab, it's possible that they were created at a higher level in the model hierarchy. In this case, you may need to search through the parent blocks to find the parameters.
Refer getParent for more insight on identifying the parent blocks.
It's also worth noting that in some cases, parameters can be created dynamically at runtime, which can make them more difficult to track down.
For more information, refer the documentation page: Atomic subchart (Stateflow)

カテゴリ

Help Center および File ExchangeSimulink Functions についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by