//Initialization code private void Form1_Load(object sender, EventArgs e) { servo = new Servo(); servo.Attach += new AttachEventHandler(servo_Attach); servo.Detach += new DetachEventHandler(servo_Detach); servo.Error += new ErrorEventHandler(servo_Error); servo.PositionChange += new PositionChangeEventHandler(servo_PositionChange); servoNumCombo.Enabled = false; positionTrk.SetRange(-22, 232); //the maximum bound of the phidget servo is 232, it's minimum bound is -23 openCmdLine(servo); }