public void loadDeviceInst(ref MChromatorAbs[] mcInst,ref lockInAmp[] LIAInst) { this.mcInst = mcInst; this.LIAInst = LIAInst; //set default active monotchormator to LIAinst[2]; int activeMCIndex = 2; activeMC = mcInst[activeMCIndex]; RefreshMCBox(); MCBox.SelectedIndex = activeMCIndex; refreshGroupBoxes(); refreshMCStatusTextBox(); }
public void loadDeviceInst(ref MChromatorAbs[] mcInst, ref lockInAmp[] LIAInst) { this.mcInst = mcInst; this.LIAInst = LIAInst; activeMC = mcInst[defaultMChromatorIndex]; try { dutLIA = LIAInst[dutLIAIndex]; } catch (IndexOutOfRangeException) { throw; } try { refLIA = LIAInst[refLIAIndex]; } catch (IndexOutOfRangeException) { refLIA = new lockInAmp(); throw; } specifyDACChannels(); }
private void initButton_Click(object sender, EventArgs e) { try { mcInst[0] = new GPIBMotorMChromator(); mcInst[0].initVISASession(VisMCTextBox.Text); mcInst[0].deviceName = "VISmono"; mcInst[1] = new GPIBMotorMChromator(); mcInst[1].initVISASession(NIRMCTextBox.Text); mcInst[1].deviceName = "NIRmono"; LIAInst[0] = new lockInAmp(); LIAInst[0].initVISASession(MainLIATextBox.Text); } catch (System.ArgumentException) { deviceMessageBox.Text = "failed"; } }
public void loadDeviceInst(ref MChromatorAbs[] mcInst, ref lockInAmp[] LIAInst) { this.mcInst = mcInst; this.LIAInst = LIAInst; }