Map data from Modelica.Electrical.Machines.BasicMachines.DCMachines.DC_PermanentMagnet to DCMotor
function watchDCMotor input String name "Full name of DCmotor instance"; input MotorData obj "DCmotor model data to be watched"; output DCMotorWatching watchObj = DCMotorWatching(name = name, VaNominal = obj.VaNominal, IaNominal = obj.IaNominal, wNominal = obj.wNominal, v = obj.va, i = obj.ia, w = obj.inertiaRotor.w) "Data in DCmotor format"; end watchDCMotor;