Beispiel #1
0
        public int SoftwareTrigChannel(int channel)
        {
            if (channel < 0 || channel >= TrigChannelCount)
            {
                throw new ArgumentOutOfRangeException("SoftwareTrigChannel(int channel,...) failed by channel = " + channel + " is out of range 0~" + (TrigChannelCount - 1));
            }
            lock (asynLocker)
            {
                if (!IsDeviceOpen)
                {
                    return((int)ErrorDef.NotOpen);
                }

                int opt = HTM.SWLightTrig((int)devIndex);
                if (0 != opt)
                {
                    return((int)ErrorDef.InvokeFailed);
                }
                return((int)ErrorDef.Success);
            }
        }