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(); }
/////////////////////////////////////////////////////////////////////////////////////////// #region apis public static Waver GetWaver() { if (m_waver == null) { lock (locker) { if (m_waver == null) { m_waver = new Waver(); } } } return(m_waver); }
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; }