private void InstrUnInit()
 {
     if (_eqmtStatus.Na01)
     {
         _eqNa.CloseIo();
         _eqNa = null;
     }
 }
        private void InstrInit(string locSetFilePath)
        {
            #region NA Init

            string na     = _myUtility.ReadTextFile(locSetFilePath, "EQUIPMENT", "NA");
            string nAaddr = _myUtility.ReadTextFile(locSetFilePath, "ADDRESS", "NA");
            _eqmtStatus.Na01 = false;
            try
            {
                switch (na.ToUpper())
                {
                case "E5071B":
                case "E5071C":
                case "E5071D":
                    _eqNa = new LibEqmtDriver.NA.Ena(nAaddr);
                    //EqNA.Preset("1");
                    _eqmtStatus.Na01 = true;
                    break;

                case "ZNB":
                case "ZNBT":
                    _eqNa = new LibEqmtDriver.NA.Znbt(nAaddr);
                    //EqNA.Preset("2");
                    _eqmtStatus.Na01 = true;
                    break;

                case "NONE":
                case "NA":
                    _eqmtStatus.Na01 = false;
                    break;
                }

                _eqNa.TriggerMode(LibEqmtDriver.NA.naEnum.ETriggerMode.Single);
                _eqNa.TriggerSource(LibEqmtDriver.NA.naEnum.ETriggerSource.BUS);
                _eqNa.LoadState(_stateFiles[0].StateFile);
                DelayMs(3000);
                _eqNa.Operation_Complete();
            }
            catch
            {
                DisplayError(this.ToString(), "Init Equipment", "NA with alias name " + nAaddr + " init error.");
            }
            #endregion
        }