In Simulink, I can get value of a block dialogue parameter that is already given using get_param
function. However, I'm interested in finding possible valid values that a block dialogue parameter accepts. For example, The Sum
block accepts any combination of + and - signs only for its Inputs
parameter. Is there a way to programmatically figure out this information?
To clarify, I want a function/method where I can pass as input a Simulink Block's name and a dialog parameter of that block. For example, I will pass Sum
as a Simulink block name and Inputs
as a parameter of that block.
What I expect as output is, +
and -
characters, so that I understand I can only use +
and -
characters for this block's Inputs
parameter.
The page Block-specific Parameters lists the valid (and default) values for different Simulink blocks' parameters in the Values
column of each table. Is there a way to find this information programmatically i.e. passing a block type/handler in some function and getting the validation rules for a particular parameter of that block?
Thanks!
sum
block the user can specify an integer, not just +'s and -'s. – Phil GoddardInputs
parameter accepts integers, till I checked the documentation page of the block. It looks like going through individual block's documentation is the best (or only?) way, as not all information is available in this page "Block-specific Parameters" I linked in my question. – Shafiul