Using the Simulink to Simcenter Amesim Interface > SL2AMECosim advanced topics
Advanced hiding I/O and parameters
Advanced options of SL2AMECosim are only available when using MATLAB version R2014b and higher.
Advanced options are available to hide or show block signals and block parameters. Block I/O and parameters can be filtered against a specific Simulink TAG block and/or dimension.
The advanced option line is decomposed as shown below:
Copy
[<optFilterVar>] [<optFilterParam>] [tag_bio=<TagVarName>]
Copy
[tag_param=<TagParamName>] [maxdimension=<dimMax>]
| Value | Description |
|---|---|
| show_vars | Show all block I/O variables without any restrictions (default value). |
| hide_vars | Hide all block I/O variables without any restrictions. |
| hide_tagged_vars | Show all block I/O variables but block tagged ones. The tag_bio option is required. |
| show_tagged_vars | Hide all block I/O variables but block tagged ones. The tag_bio option is required |
| Value | Description |
|---|---|
| show_params | Show all block parameters without any restrictions (default value). |
| hide_params | Hide all block parameters without any restrictions. |
| hide_tagged_params | Show all block parameters but block tagged ones. The param option is required. |
| show_tagged_params | Hide all block parameters but block tagged ones. The param option is required. |
Note
Only one TAG value for signal filtering and one TAG for parameter filtering can be used at the same time.
| Command | Filtering |
|---|---|
| sl2amecosim('relayAndMore','here', 'auto') | No filtering, everything will be exposed. |
| sl2amecosim('relayAndMore','here', 'auto' ‘show_vars show_params’) | No filtering, everything will be exposed. |
| sl2amecosim('relayAndMore','here', 'auto' ‘hide_vars’) | All block I/O variables will be hidden. All parameters will be exposed. |
| sl2amecosim('relayAndMore','here', 'auto' ‘hide_vars hide_params’) | All block I/O variables will be hidden. All parameters will be hidden. |
| sl2amecosim('relayAndMore','here', 'auto' ‘hide_tagged_vars show_tagged_params tag_bio=T1 tag_param=T2’) | All block I/O variables will be shown except those of blocks tagged T1. All parameters will be hidden except those of blocks tagged T2. |
| sl2amecosim('relayAndMore','here', 'auto' ‘hide_vars maxdimension=2’) | All block I/O variables will be hidden. All parameters with dimension>2 will be hidden. |
Note
A tag set on a subsystem block is applied automatically on all included blocks in this subsystem. Therefore filtering a subsystem block is equivalent to filtering its constituents.
Source: https://docs.sw.siemens.com/en-US/doc/254352342/PL20250521841123434.amesim_collection.Simulink/xid1404975 · retrieved 2026-07-17