예제 #1
0
 public frmConfiguration(string scriptNamePath)
 {
     this.configGuiCtrl = new ObjectInterface();
     this.currentDir = ConfigurationManager.AppSettings["InstalledDirectory"] + @"\scripts";
     this.InitializeComponent();
     this.configFilePathVal.Text = scriptNamePath.Replace(".py", ".cfg");
 }
예제 #2
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!");
     }
 }
예제 #3
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!");
     }
 }
예제 #4
0
 public frmConfiguration()
 {
     this.configGuiCtrl = new ObjectInterface();
     this.currentDir = ConfigurationManager.AppSettings["InstalledDirectory"] + @"\scripts";
     this.InitializeComponent();
 }
예제 #5
0
 public frmSPAzCtrl(int address)
 {
     this.cpGuiCtrl = new ObjectInterface();
     this._SPAzMgr = new SPAzMgr(address);
     this.InitializeComponent();
 }
예제 #6
0
 public frmSPAzCtrl()
 {
     this.cpGuiCtrl = new ObjectInterface();
     this._SPAzMgr = new SPAzMgr(0x378);
     this.InitializeComponent();
 }