Reputation: 11
I have a subsystem block that I would like to reuse significantly, with each instantiation differing only by a numeric parameter input via the block mask. I would like to have the number of the parameter displayed as the icon of each block instantiation.
I have attempted to have it display via the icon drawing commands, but I am unsure as to the parameter value to be an input to the disp(), or fprintf() commands. I've added a couple of pictures to detail my (simple) process so far.
Via the mask overlay, a simple parameter is created.
I attempt to reference the parameter via the icon drawing commands.
Upvotes: 1
Views: 4009
Reputation: 21
You have two options.
disp(get_param(gcb,'inputParam'))
disp(inputParam)
like you already were.Upvotes: 2