public Form1()
 {
     InitializeComponent();
     MovementController = new StageController();
     CalUtill = new CalibrationUtility(MovementController, "COM6", "COM3"); //THIS IS THE LINE (Move...roller, Balance, Keithley)
     TestUtil = new TestingUtility(MovementController, "COM3");
 }
        public TestingUtility(StageController stageCont, string keithleyPort)
        {
            MovementController = stageCont;

            KeithleyPort = new SerialPort(keithleyPort);
            KeithleyPort.BaudRate = 19200;
            KeithleyPort.Parity = Parity.None;
            KeithleyPort.DataBits = 8;
            KeithleyPort.StopBits = StopBits.One;
            KeithleyPort.Handshake = Handshake.None;
        }
        public CalibrationUtility(StageController stageCont, string balancePort, string keithleyPort)
        {
            XOffset = 892985;
            YOffset = -69572;

            MovementController = stageCont;

            BalancePort = new SerialPort(balancePort);
            BalancePort.BaudRate = 9600;
            BalancePort.Parity = Parity.None;
            BalancePort.DataBits = 8;
            BalancePort.StopBits = StopBits.One;
            BalancePort.Handshake = Handshake.None;

            KeithleyPort = new SerialPort(keithleyPort);
            KeithleyPort.BaudRate = 19200;
            KeithleyPort.Parity = Parity.None;
            KeithleyPort.DataBits = 8;
            KeithleyPort.StopBits = StopBits.One;
            KeithleyPort.Handshake = Handshake.None;
        }