How to pass a struct to a model reference instance?
Hi all,
I have a Simulink Parameter containing a struct that I would like to pass on to a model reference instance.
Using the parameter from the basae workspace is no problem, but I need to use different parameters for the individual instances.
My idea was to use the instance parameters, but it seems like I cannot use a struct there.
Data type "auto" is not allowed and struct is not available.
The parameters I’d like to pass on look like this:
Is there a way to use a struct as instance parameter?
Or is there maybe a totally different approach?
Any help would be highly appreciated. 🙂
Thanks!
ChristopherHi all,
I have a Simulink Parameter containing a struct that I would like to pass on to a model reference instance.
Using the parameter from the basae workspace is no problem, but I need to use different parameters for the individual instances.
My idea was to use the instance parameters, but it seems like I cannot use a struct there.
Data type "auto" is not allowed and struct is not available.
The parameters I’d like to pass on look like this:
Is there a way to use a struct as instance parameter?
Or is there maybe a totally different approach?
Any help would be highly appreciated. 🙂
Thanks!
Christopher Hi all,
I have a Simulink Parameter containing a struct that I would like to pass on to a model reference instance.
Using the parameter from the basae workspace is no problem, but I need to use different parameters for the individual instances.
My idea was to use the instance parameters, but it seems like I cannot use a struct there.
Data type "auto" is not allowed and struct is not available.
The parameters I’d like to pass on look like this:
Is there a way to use a struct as instance parameter?
Or is there maybe a totally different approach?
Any help would be highly appreciated. 🙂
Thanks!
Christopher instance parameters, simulink parameter, struct, model reference, instance MATLAB Answers — New Questions
​