A modern plasma controller tested on the TCV tokamak