Hello I fully do not understand role of initialization commnad during export of control plant from Acar. Adm 711 says in lecture 6, that it is mandatory to define this as:
– The initialization command field uses the ‘file/command’ command to load the special _controls.acf file. This initializes the vehicle model and is essential for proper operation.
AND you have plant input/output structures in the model (the testrig has a number of plant outputs, but not a plant input)
So that is the logic that we use before exporting the "Controls" files. These files should be:
.m file for Matlab
.inf for Easy5
xxx_controls.acf to *initialize* your vehicle for a full-vehicle (dynamic) simulation.
The xxx_controls.acf contains all of the initialization commands that you would see for a full-vehicle event, but omits the "SIM/DYN" command that advances time. So it gets the vehicle setup for the event, but does not advance time. You MUST call this _controls.acf file using ADAMS_init with standard Adams Controls, or your vehicle might not start properly. With FMU we have recognized that that command is needed and we put it in automatically for you.
AND you have plant input/output structures in the model (the testrig has a number of plant outputs, but not a plant input)
So that is the logic that we use before exporting the "Controls" files. These files should be:
.m file for Matlab
.inf for Easy5
xxx_controls.acf to *initialize* your vehicle for a full-vehicle (dynamic) simulation.
The xxx_controls.acf contains all of the initialization commands that you would see for a full-vehicle event, but omits the "SIM/DYN" command that advances time. So it gets the vehicle setup for the event, but does not advance time. You MUST call this _controls.acf file using ADAMS_init with standard Adams Controls, or your vehicle might not start properly. With FMU we have recognized that that command is needed and we put it in automatically for you.