I have a component array
parameter Integer n = 4
myComponentType[n] componentArray
And I can set each parameters in the component array with something like
parameter Real[n] params
myComponentType[n] componentArray(param=params)
But this seems very clunky to have to set up a parameter array to specify the individual parameters. I'm sure there's a better way.
Additionally, once I turn the component into an array, I lose the ability to change each component's property in Diagram View. I found in "component properties" that there's a checkbox for "array" but it doesn't update the expression editor.
Screenshots to illustrate:
Array is selected but "n" hasn't evaluated to 4
The parameter array I'm using as a work around is resized to 4
The parameter for the component array is not detected as an array