Exemplo n.º 1
0
        public int ResetTriggedCount(int trigChn)
        {
            if (!IsOpen)
            {
                return((int)ErrorDef.NotOpen);
            }

            if (trigChn < 0 || trigChn >= TrigChannels)
            {
                throw new ArgumentOutOfRangeException("ResetTriggedCount(trigChn ,...) fialed By:trigChn = " + trigChn + " is outof range:0~" + (TrigChannels - 1));
            }

            int err = HTM.ResetTrigCnt(devIndexes[trigChn]);

            if (0 != err)
            {
                return((int)ErrorDef.InvokeFailed);
            }
            return((int)ErrorDef.Success);
        }