public override void HomeAll() { // start the device polling device.StartPolling(250); // call GetMotorConfiguration on the device to initialize the DeviceUnitConverter object required for real world unit parameters MotorConfiguration motorSettings = device.GetMotorConfiguration(this.Config.Name); DCMotorSettings currentDeviceSettings = device.MotorDeviceSettings as DCMotorSettings; // display info about device DeviceInfo deviceInfo = device.GetDeviceInfo(); try { device.Home(60000); } catch (Exception ex) { this.LastError = string.Format("Failed to home device {0}\r\n{1}", this, ex.Message); } finally { device.StopPolling(); } }