public frmGPIBCtrl(int boardID, byte primaryAddress, byte secondaryAddress) { this.cpGuiCtrl = new ObjectInterface(); try { this._GPIBCtrl = new GPIB_Mgr_Agilent_HP8648C(boardID, primaryAddress, secondaryAddress); this.InitializeComponent(); } catch (Exception exception) { MessageBox.Show(exception.Message, "ERROR!"); } }
public frmGPIBCtrl() { this.cpGuiCtrl = new ObjectInterface(); try { this._GPIBCtrl = new GPIB_Mgr_Agilent_HP8648C(); this.InitializeComponent(); } catch (Exception exception) { MessageBox.Show(exception.Message, "ERROR!"); } }
private void whenGPIBInfoChange() { if ((this.textBox_GPIB_BoardID.Text != "") && (this.textBox_GPIBPrimaryAddress.Text != "")) { try { int boardID = Convert.ToInt32(this.textBox_GPIB_BoardID.Text); byte primaryAddress = Convert.ToByte(this.textBox_GPIBPrimaryAddress.Text); this._GPIBCtrl = new GPIB_Mgr_Agilent_HP8648C(boardID, primaryAddress, 0); } catch (Exception exception) { MessageBox.Show(exception.Message, "ERROR"); } } }