I am trying out some high sampling rates (25 Ms/s) on our USB 5132 using the NI shipping example FetchForever in VS 2008 C#.NET . Something is not optimized because even if I only grab 1 point per Fetch, the example crashes after a few hundred Fetches with:
Error BFFA4018. Possible Reasons: The requested data has been overwritten in memory so it is no longer available for fetching. Status Code: -200004 .
I just added a 15 second Thread.Sleep in my code after the call to sampleScopeSingleRecordReader.MemoryOptimizedFetchFromMultipleChannelsAsync() and got the same error. Any other suggestions would be greatly appreciated.
OK, it is all fixed now. I went back to what I understand to be 'single record' acquisition, and then added a polling loop after the Fetch:
scopeSingleRecordReader.FetchFromMultipleChannelsAsync(channelNameTextBox.Text, 0, sampleScopeSession.Timing.ActualRecordLength, PrecisionTimeSpan.FromSeconds(50), null);
MessageBox.Show("fetched. waiting for scope session to close.");
} while (sampleScopeSession.IsOpen);
Sorry for clogging up the boards. These digitizers are tricky.