
Make Your Own Section
Add and rearrange any components you want


Get in Touch with Nadia!
Sign up for a creative consultationACE-Lab Rig App
From rig data to a tested controller in three steps: Identify the motor from measured data, Tune a PI controller on the model, then Test it on the ACE-Box, with the theory beside every result.
Opens in your browser with a free MathWorks account; Test mode simulates the motor, so no hardware is needed to try it. The ZIP is the full ACE-Lab repository: the app is in
06_Apps/ACE-Lab-Rig-App.
Three steps
The same workflow students follow in the C1.3 and C1.4 practical exercises, in one app.
1System identification
Excite the motor with a PRBS around an operating point, log speed and drive, and fit an ARX model by linear least squares.
- Optional low-pass filter H(s), with its effect on the noise
- Identified G(z) and G(s) = K/(τs + 1), fit and ±1σ
2Tuning via model
Design the PI on the identified model, simulated in Simulink, by either method.
- Pole placement: overshoot → ζ, rise time → ωₙ, target poles → Kp, Ki
- Optimisation: requirements + priority, cost map and search
3Testing
Adjust Kp and Ki, watch the closed-loop poles move on the s- and z-planes, and run a step test on the rig.
- Model and rig speed and drive on one plot
- Each requirement checked: limit, model, rig, met?
Inside the app

Step 1: the measured speed against the identified model, the filter's effect on the noise, and the identified G(z) and G(s).
Run it
MATLAB Online NO INSTALL
- Click Open in MATLAB Online and sign in.
- With
ACELabRigApp.mopen, press Run (choose Change Folder if asked). - Start in Test mode.
Desktop MATLAB
- Download the ZIP and unzip it.
- Open
06_Apps/ACE-Lab-Rig-Appin MATLAB. - Type
ACELabRigApp.
Needs MATLAB and Simulink (R2021a or later).
With the ACE-Box
Set Mode → Hardware. The app builds the model for the Arduino Uno and runs it in External mode (Monitor & Tune).
- Desktop: Simulink Support Package for Arduino Hardware (see G1)
- Online: MATLAB Connector on the PC the box is plugged into
Practical exercises and guides
C1.4DC Motor PI Control Design by Pole Placement from an LLS ModelPractical exercise · Method 1 in the app C1.3DC Motor PI Control: Automatic OptimisationPractical exercise · Method 2 in the app LabsAll ACE-Lab Practical ExercisesHardware labs from first LED to adaptive control COREACE-CORE Learning GuidesThe theory behind each step, from least squares to pole placementMATLAB and Simulink are registered trademarks of The MathWorks, Inc. ACE-Lab files are licensed CC BY 4.0.



