コード例 #1
0
        public int AvailableSamples(StreamType channelType, ushort channelNumber)
        {
            ItcmmCall(() => ITCMM.ITC_UpdateNow(DevicePtr, System.IntPtr.Zero));

            ITCMM.ITCChannelDataEx[] channelData = new ITCMM.ITCChannelDataEx[1];

            channelData[0].ChannelType   = (ushort)channelType;
            channelData[0].ChannelNumber = channelNumber;

            uint err = ItcmmCall(() => ITCMM.ITC_GetDataAvailable(DevicePtr, 1, channelData));

            if (err != ITCMM.ACQ_SUCCESS)
            {
                throw new HekaDAQException("Unable to get available FIFO points", err);
            }

            return(channelData[0].Value);
        }