示例#1
0
 private void Init()
 {
     m_params       = Params.GetParams();
     m_config       = Config.GetConfig();
     m_waver        = Waver.GetWaver();
     m_card         = NiCard.CreateInstance();
     m_scanTasks    = new List <ScanTask>();
     m_scanningTask = null;
     m_params.Calculate();
 }
示例#2
0
        ///////////////////////////////////////////////////////////////////////////////////////////

        #region apis

        public static Waver GetWaver()
        {
            if (m_waver == null)
            {
                lock (locker)
                {
                    if (m_waver == null)
                    {
                        m_waver = new Waver();
                    }
                }
            }
            return(m_waver);
        }
示例#3
0
        private NiCard()
        {
            m_sysConfig = SysConfig.GetSysConfig();
            m_config    = Config.GetConfig();
            m_params    = Params.GetParams();
            m_waver     = Waver.GetWaver();

            m_aoTask           = null;
            m_doTask           = null;
            m_aiTask           = null;
            m_ciTasks          = null;
            m_aiUnscaledReader = null;
            m_ciChannelReaders = null;
        }