Ejemplo n.º 1
0
 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!");
     }
 }
Ejemplo n.º 2
0
 public frmGPIBCtrl()
 {
     this.cpGuiCtrl = new ObjectInterface();
     try
     {
         this._GPIBCtrl = new GPIB_Mgr_Agilent_HP8648C();
         this.InitializeComponent();
     }
     catch (Exception exception)
     {
         MessageBox.Show(exception.Message, "ERROR!");
     }
 }
Ejemplo n.º 3
0
 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");
         }
     }
 }