Simple controlled drive with discrete-time controller modelled as a clocked partition. The PI controller is defined with a continuous-time block. The clocked partition is automatically discretized with an implicit Euler method by setting parameter useSolver = true in the Advanced menu of block periodicClock and then selecting ImplicitEuler as SolverMethod for the partition.