public int MaxAvailableSamples(StreamType channelType, ushort channelNumber) { ITCMM.ITCChannelDataEx info = new ITCMM.ITCChannelDataEx(); info.ChannelType = (ushort)channelType; info.ChannelNumber = channelNumber; var infoArr = new ITCMM.ITCChannelDataEx[1]; infoArr[0] = info; uint err = ItcmmCall(() => ITCMM.ITC_GetFIFOInformation(DevicePtr, 1, infoArr)); if (err != ITCMM.ACQ_SUCCESS) { throw new HekaDAQException("Unable to get FIFO information", err); } info = infoArr[0]; return(info.Value); }