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();
        }
Beispiel #2
0
        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();
        }
 /// <summary>
 /// Set active monochromator
 /// </summary>
 /// <param name="index"></param>
 private void setActiveMC(int index)
 {
     activeMC = mcInst[index];
     refreshMCStatusTextBox();
 }
 public void loadDeviceInst(ref MChromatorAbs[] mcInst, ref lockInAmp[] LIAInst)
 {
     this.mcInst = mcInst;
     this.LIAInst = LIAInst;
 }