clear(); loadFile("externaltest.mo"); simulate(externaltest, stopTime=1.0,numberOfIntervals=2000); plot({mot.omega, mot.Position, hall.HallSignal, dcu.Check, dcu.BBR});