private testItems saveTestItems() { testItems temp = new testItems(); //Firmware revision temp.ReadFW = checkBoxReadFW.Checked; temp.FW_INFO_FW_REV = Convert.ToByte(textBoxFwRev.Text); temp.FW_INFO_FW_VER = Convert.ToByte(textBoxFwVer.Text); temp.FW_INFO_NUM_COLS = Convert.ToByte(textBoxNumCols.Text); temp.FW_INFO_NUM_ROWS = Convert.ToByte(textBoxNumRows.Text); //Swithc Test temp.SwitchTest = checkBoxSwitchTest.Checked; //RawCount temp.ReadRawCount = checkBoxReadRawCount.Checked; temp.RAW_DATA_READS = Convert.ToInt32(textBoxRawDataReads.Text); temp.RAW_AVG_MAX = Convert.ToInt32(textBoxRawCountMax.Text); temp.RAW_AVG_MIN = Convert.ToInt32(textBoxRawCountMin.Text); temp.RAW_NOISE_MAX = Convert.ToInt32(textBoxNoiseMax.Text); temp.RAW_STD_DEV_MAX = Convert.ToInt32(textBoxStdDevMax.Text); //IDAC temp.ReadIDAC = checkBoxReadIDAC.Checked; temp.EraseIDAC = checkBoxEraseIDAC.Checked; temp.IDAC_MAX = Convert.ToByte(textBoxIdacMax.Text); temp.IDAC_MIN = Convert.ToByte(textBoxIdacMin.Text); temp.IDAC_GAIN_MAX = Convert.ToByte(textBoxIDACGainMAX.Text); temp.LOCAL_IDAC_MAX = Convert.ToByte(textBoxLocalIDACMax.Text); temp.LOCAL_IDAC_MIN = Convert.ToByte(textBoxLocalIDACMin.Text); return(temp); }
private void loadTestItems(testItems temp) { //Firmware revision checkBoxReadFW.Checked = temp.ReadFW; textBoxFwRev.Text = temp.FW_INFO_FW_REV.ToString(); textBoxFwVer.Text = temp.FW_INFO_FW_VER.ToString(); textBoxNumCols.Text = temp.FW_INFO_NUM_COLS.ToString(); textBoxNumRows.Text = temp.FW_INFO_NUM_ROWS.ToString(); //Switch Test checkBoxSwitchTest.Checked = temp.SwitchTest; //RawCount checkBoxReadRawCount.Checked = temp.ReadRawCount; textBoxRawDataReads.Text = temp.RAW_DATA_READS.ToString(); textBoxRawCountMax.Text = temp.RAW_AVG_MAX.ToString(); textBoxRawCountMin.Text = temp.RAW_AVG_MIN.ToString(); textBoxNoiseMax.Text = temp.RAW_NOISE_MAX.ToString(); textBoxStdDevMax.Text = temp.RAW_STD_DEV_MAX.ToString(); //IDAC checkBoxReadIDAC.Checked = temp.ReadIDAC; checkBoxEraseIDAC.Checked = temp.EraseIDAC; textBoxIdacMax.Text = temp.IDAC_MAX.ToString(); textBoxIdacMin.Text = temp.IDAC_MIN.ToString(); textBoxIDACGainMAX.Text = temp.IDAC_GAIN_MAX.ToString(); textBoxLocalIDACMax.Text = temp.LOCAL_IDAC_MAX.ToString(); textBoxLocalIDACMin.Text = temp.LOCAL_IDAC_MIN.ToString(); }
private void radioButtonStationOQC_CheckedChanged(object sender, EventArgs e) { try { if (radioButtonStationOQC.Checked) { testItems currentTest = dutConfig.OQC; loadTestItems(currentTest); } } catch { } }
private testItems saveTestItems() { testItems temp = new testItems(); //Firmware revision temp.ReadFW = checkBoxReadFW.Checked; temp.FW_INFO_FW_REV = Convert.ToByte(textBoxFwRev.Text); temp.FW_INFO_FW_VER = Convert.ToByte(textBoxFwVer.Text); temp.FW_INFO_NUM_COLS = Convert.ToByte(textBoxNumCols.Text); temp.FW_INFO_NUM_ROWS = Convert.ToByte(textBoxNumRows.Text); //Swithc Test temp.SwitchTest = checkBoxSwitchTest.Checked; //RawCount temp.ReadRawCount = checkBoxReadRawCount.Checked; temp.RAW_DATA_READS = Convert.ToInt32(textBoxRawDataReads.Text); temp.RAW_AVG_MAX = Convert.ToInt32(textBoxRawCountMax.Text); temp.RAW_AVG_MIN = Convert.ToInt32(textBoxRawCountMin.Text); temp.RAW_NOISE_MAX = Convert.ToInt32(textBoxNoiseMax.Text); temp.RAW_STD_DEV_MAX = Convert.ToInt32(textBoxStdDevMax.Text); //IDAC temp.ReadIDAC = checkBoxReadIDAC.Checked; temp.EraseIDAC = checkBoxEraseIDAC.Checked; temp.IDAC_MAX = Convert.ToByte(textBoxIdacMax.Text); temp.IDAC_MIN = Convert.ToByte(textBoxIdacMin.Text); temp.IDAC_GAIN_MAX = Convert.ToByte(textBoxIDACGainMAX.Text); temp.LOCAL_IDAC_MAX = Convert.ToByte(textBoxLocalIDACMax.Text); temp.LOCAL_IDAC_MIN = Convert.ToByte(textBoxLocalIDACMin.Text); return temp; }
private void loadTestItems(testItems temp) { //Firmware revision checkBoxReadFW.Checked = temp.ReadFW; textBoxFwRev.Text = temp.FW_INFO_FW_REV.ToString(); textBoxFwVer.Text = temp.FW_INFO_FW_VER.ToString(); textBoxNumCols.Text = temp.FW_INFO_NUM_COLS.ToString(); textBoxNumRows.Text = temp.FW_INFO_NUM_ROWS.ToString(); //Switch Test checkBoxSwitchTest.Checked = temp.SwitchTest; //RawCount checkBoxReadRawCount.Checked = temp.ReadRawCount; textBoxRawDataReads.Text = temp.RAW_DATA_READS.ToString(); textBoxRawCountMax.Text = temp.RAW_AVG_MAX.ToString(); textBoxRawCountMin.Text = temp.RAW_AVG_MIN.ToString(); textBoxNoiseMax.Text = temp.RAW_NOISE_MAX.ToString(); textBoxStdDevMax.Text = temp.RAW_STD_DEV_MAX.ToString(); //IDAC checkBoxReadIDAC.Checked = temp.ReadIDAC; checkBoxEraseIDAC.Checked = temp.EraseIDAC; textBoxIdacMax.Text = temp.IDAC_MAX.ToString(); textBoxIdacMin.Text = temp.IDAC_MIN.ToString(); textBoxIDACGainMAX.Text = temp.IDAC_GAIN_MAX.ToString(); textBoxLocalIDACMax.Text = temp.LOCAL_IDAC_MAX.ToString(); textBoxLocalIDACMin.Text = temp.LOCAL_IDAC_MIN.ToString(); }
/// <summary> /// display the dut config to text boxes. /// </summary> /// <returns></returns> private bool LoadSettings() { try { //basic information textBoxVddOpPS.Text = dutConfig.VDD_OP_PS.ToString(); textBoxVddOpIO.Text = dutConfig.VDD_OP_IO.ToString(); textBoxIddMax.Text = dutConfig.IDD_MAX.ToString(); textBoxIddMin.Text = dutConfig.IDD_MIN.ToString(); textBoxIddOpen.Text = dutConfig.IDD_OPEN.ToString(); textBoxIddShort.Text = dutConfig.IDD_SHORT.ToString(); textBoxI2CAddress.Text = dutConfig.I2C_ADDRESS.ToString(); textBoxIDACMap.Text = dutConfig.IDACMap; textBoxSNLength.Text = dutConfig.SERIALNUMBER_LENGTH.ToString(); textBoxResoX.Text = dutConfig.RESOLUTION_X.ToString(); textBoxResoY.Text = dutConfig.RESOLUTION_Y.ToString(); //checkbox of Boot loader checkBoxBootLoader.Checked = dutConfig.TRACKPAD_BOOTLOADER; //radio button of trackpad I2C speed if (dutConfig.I2C_SPEED == TPCONFIG.TP_I2C_400K) { radioButtonI2CSpeed0.Checked = true; } if (dutConfig.I2C_SPEED == TPCONFIG.TP_I2C_100K) { radioButtonI2CSpeed1.Checked = true; } if (dutConfig.I2C_SPEED == TPCONFIG.TP_I2C_50K) { radioButtonI2CSpeed2.Checked = true; } //radio button of trackpad platform if (dutConfig.TRACKPAD_PLATFORM == TPCONFIG.TP_FUNCTION_ST) { radioButtonModel1.Checked = true; } if (dutConfig.TRACKPAD_PLATFORM == TPCONFIG.TP_FUNCTION_MTG) { radioButtonModel2.Checked = true; } if (dutConfig.TRACKPAD_PLATFORM == TPCONFIG.TP_FUNCTION_APA) { radioButtonModel3.Checked = true; } //radio button of trackpad interface if (dutConfig.TRACKPAD_INTERFACE == TPCONFIG.TP_INTERFACE_I2C) { radioButtonInterfaceI2C.Checked = true; } if (dutConfig.TRACKPAD_INTERFACE == TPCONFIG.TP_INTERFACE_PS2) { radioButtonInterfacePS2.Checked = true; } if (dutConfig.TRACKPAD_INTERFACE == TPCONFIG.TP_INTERFACE_SMB) { radioButtonInterfaceSMbus.Checked = true; } //radio button of trackpad switch if (dutConfig.TRACKPAD_TACTILESWITCH == TPCONFIG.TP_REMOTE_CONTROL) { radioButtonSwitch1.Checked = true; } if (dutConfig.TRACKPAD_TACTILESWITCH == TPCONFIG.TP_NORMAL_BUTTON) { radioButtonSwitch2.Checked = true; } if (dutConfig.TRACKPAD_TACTILESWITCH == TPCONFIG.TP_CLICK_PAD) { radioButtonSwitch3.Checked = true; } //load picture this.pictureBox1.Image = (Image)dutConfig.Picture; //load TPT setting radioButtonStationTPT.Checked = true; testItems currentTest = dutConfig.TPT; loadTestItems(currentTest); } catch { return(false); } return(true); }