Configurable subsystem parameter visibility

I am trying to develop a configurable subsystem, for example, a three-phase rectifier, in which one configuration would have RC snubbers, while the other configuration would not. I would like to set the visibility of the snubber component parameters (e.g. capacitance and resistance) based on the configuration chosen. How can I do that?

See the Using PLECS + Masking Subsystems + Mask Dialog section of the PLECS Manual. You can define Lua language scripts in the Dialog Callback section of the Dialog tab of the mask editor.

The relevant Lua functions to enable/disable parameters are below. There also are many examples in the PLECS component library, for example review the Continuous PID Controller block implementation or many of the blocks in the C2000 TSP component library.

An example script to show the CapValue parameter when the first configuration is selected would be along the lines of:

if Dialog:get('Configuration')=='1' then
  Dialog:set('CapValue','Visible',true)
else
  Dialog:set('CapValue','Visible',false)
end

Thank you, Bryan. This worked for me. I did actually read the documentation before posting, but I did not realize that I could read the parameter values of the component in the dialog callback. Your example really helped there.

Glad to hear that helped!