//****************************************// // Hardware Initialize // //****************************************// /// <summary> /// Hardware initialize, init Agilent device and open comm for MPQ /// </summary> private void HardwareInitialize() { try { //Read Hardware Settings HardwareConfig.Read(); //Agilent agilentDevice.InitializeU2651A(HardwareConfig.Option.U2651AtxtAddr); agilentDevice.InitializeU2722A(HardwareConfig.Option.U2722AtxtAddr); agilentDevice.InitializeU2751A_WELLA(HardwareConfig.Option.U2751AtxtAddr); //agilentDevice.InitializeU2751A_WELLB(HardwareConfig.Option.U2751AWellBtxtAddr); //MPQ mpqDevice.PortInit(HardwareConfig.Port.MPQPort); toolStripStatusLabelHardware.BackColor = Color.Green; testHardwareReady = true; } catch (Exception ex) { MessageBox.Show(ex.Message, "Error:", MessageBoxButtons.OK, MessageBoxIcon.Error); toolStripStatusLabelHardware.BackColor = Color.Red; testHardwareReady = false; Log.error(ex.Message); } }