Discussion:
Delete Simulink block mask parameter via m-script
(too old to reply)
J? Sauer
2008-07-29 08:44:02 UTC
Permalink
Hello,
is it possible to delete a Simulink block parameter via a
command in a m-script? Same function as m-command like
using the button with the red cross in the mask parameters
GUI manual.
Thanks for your help.

jo:rg
Fangjun Jiang
2008-07-29 12:35:03 UTC
Permalink
As far as I know, there is no direct (or single command)
that you can use to delete a mask parameter. However, it
can be done by using get_param() and set_param(). I masked
a subsystem block and added a few parameters. By getting
the properties such as MaskPromptString, MaskStyleString,
MaskTunableValueString, etc. I think it is possible to
delete a mask parameter by setting those properties
properly. It will take maybe two dozens lines of code and
you needs to be very careful not to mess up with it.
Post by J? Sauer
Hello,
is it possible to delete a Simulink block parameter via
a
Post by J? Sauer
command in a m-script? Same function as m-command like
using the button with the red cross in the mask
parameters
Post by J? Sauer
GUI manual.
Thanks for your help.
jo:rg
Praetorian
2008-07-29 15:40:57 UTC
Permalink
Post by Fangjun Jiang
As far as I know, there is no direct (or single command)
that you can use to delete a mask parameter. However, it
can be done by using get_param() and set_param(). I masked
a subsystem block and added a few parameters. By getting
the properties such as MaskPromptString, MaskStyleString,
MaskTunableValueString, etc. I think it is possible to
delete a mask parameter by setting those properties
properly. It will take maybe two dozens lines of code and
you needs to be very careful not to mess up with it.
Post by J? Sauer
Hello,
is it possible to delete a Simulink block parameter via
a
Post by J? Sauer
command in a m-script? Same function as m-command like
using the button with the red cross in the mask
parameters
Post by J? Sauer
GUI manual.
Thanks for your help.
jo:rg
It is possible to do this but as Fangjun said it's a lot of code and
not worth the effort IMO. Why do you want to do this anyway? Instead
of deleting the mask parameter use the MaskVisibilities or MaskEnables
properties to hide or disable the parameter.

Loading...