// public double[] ReferenceOpticalPower_dBm { get; }

        #endregion

        public void Init()
        {
            try
            {
                inst_ABB = new Inst_AAB_HostBoard();
                inst_ABB.EnterEngMod();

                for (int i = 0; i < MAX_CHANNEL; i++)
                {
                    inst_ABB.SetDCCurrent(i, 0);
                    System.Threading.Thread.Sleep(100);
                    inst_ABB.SetModulationCurrent(i, 0);
                }
                inst_ABB.SetAPCLoop(false);
                inst_ABB.DDM_Enable();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
Ejemplo n.º 2
0
        public bool Init(ref string errormessage)
        {
            try
            {
                inst_ABB = new Inst_AAB_HostBoard();
                inst_ABB.EnterEngMod();

                for (int i = 0; i < 4; i++)
                {
                    inst_ABB.SetDCCurrent(i, 0);
                    System.Threading.Thread.Sleep(100);
                    inst_ABB.SetModulationCurrent(i, 0);
                }
                inst_ABB.SetAPCLoop(false);
                inst_ABB.DDM_Enable();
            }
            catch (Exception ex)
            {
                errormessage = ex.Message;
                return(false);
            }

            return(true);
        }