I want to connect Adams/Car with a Matlab Simulink model. This does work for me when I set the necessary model/block parameters in Simulink and then build it as C-Code into a *dll which I can import via the plant export feature.
Now I'd like to simplify changing the model parameters by feeding them from Adams instead of having to rebuild the dll everytime. The model has 96 parameters so having a state variable for each of them isn't really an option (especially since there can be several instances of them in a template).
I'd like to feed a matrix from file which is then applied to a variable and "plant exported". It seams however that state variables aren't allowed to have more than one "channel".
Does anybody have some hints on how to achieve my goal?
A "dirty" method might be to get a string over to the >Simulinkpart and split it apart there though I'd prefer a cleaner version.
I am not quite sure since I am not familiar with english abbreviations but I think it is a FMU. I define my input & output vairable, do a Controls/plant export => get the .m file defining inputs/outputs. Build the simulink model as C-Code into an *.dll and "reconnect" it to Adams as Controls/Control Systems/Import (while redefining the input and output variables).
Unfortunately I have to make use of Adams 2015 though the design variables seam to be exactly what I need (since they do not change no matter how time/inputs change). I know I can still build Design variables in Adams/Car via the Command Navigator even though they aren't shown in the model browser though that still deosn't seam to resolve the issue with having to creat 96 of them for each instance...
I am not quite sure since I am not familiar with english abbreviations but I think it is a FMU. I define my input & output vairable, do a Controls/plant export => get the .m file defining inputs/outputs. Build the simulink model as C-Code into an *.dll and "reconnect" it to Adams as Controls/Control Systems/Import (while redefining the input and output variables).
Unfortunately I have to make use of Adams 2015 though the design variables seam to be exactly what I need (since they do not change no matter how time/inputs change). I know I can still build Design variables in Adams/Car via the Command Navigator even though they aren't shown in the model browser though that still deosn't seam to resolve the issue with having to creat 96 of them for each instance...