Ejemplo n.º 1
0
        public int GetTriggedCount(int trigChn, out int count)
        {
            count = 0;
            if (!IsOpen)
            {
                return((int)ErrorDef.NotOpen);
            }

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

            count = HTM.GetTrigCnt(devIndexes[trigChn]);
            return((int)ErrorDef.Success);
        }