Step Seven - Use the S-Function ESL in Adams Control System Import

First you will start Adams View and import the command file, and then simulate your Adams model containing the GSE for the control system.

To start Adams View and load the command file:

1. Launch Adams View and import the file ant_test.cmd.
2. Load the Adams Controls plugin, if not already loaded.
3. From the Plugins tab, click on Controls container, point to Control System, and then select Import.
The Adams Controls System Import dialog box appears.
4. Select Import I/O Signals from Existing Controls Plant.
5. From the Database Navigator, select ant_test for the plant. The values for the Output Signals and Input Signals text boxes appear.
6. Complete the dialog box as shown in Figure 37, and then select OK.
Figure 37 System Import

To simulate your model:

1. From the Settings menu, point to Solver, and then select Dynamics.
The Solver Setting dialog box displays.
2. Change Formulation to SI2.
3. Set Category to Executable.
4. Set Hold License to No.
This setting is critical to using the RTW dll in repeated simulations in Adams View.
When you rewind/stop a simulation in Adams View, the RTW dll is released and reacquired, thereby resetting the discrete states and counters to their original state. Changing this behavior by issuing commands in Adams View causes unexpected simulations after the first one.
5. Select Close.
6. Run a simulation with a step size of .001s and duration of .25s.
During the simulation, the antenna motion behaves the same as the one in the co-simulation.
7. Press F8 to open Adams PostProcessor.
8. Plot and animate, as desired.
Adams PostProcessor displays the plot of azimuth position versus time, as shown below: