07-30-2008 05:07 AM
08-01-2008 10:20 AM
08-13-2008 11:15 AM
Hi,
Sorry for the very late reply but was caught up in other things. From your previous post I can see the differences between the two setups and have used the second. I have recently upgraded onto a system with a fast trigger of about 1kHz and a slow trigger of 1Hz. Working at a sample rate of 250MS/s I get the error that the data has been already overwritten when I try to read the start trigger. I'm not 100% sure of the system but I assumed it was on a circular buffer which only recorded the time regions that were set up to be acquired i.e. 10us after each fast trigger, but I have been wondering whether its storing all the data after the start trigger, filling up the buffer and before I can fetch the start timestamp has overwritten the data. What confuses me is that its an intermittant problem and other times it seems to be ok.
09-09-2008 01:49 PM
Hi John,
A buffer will be created for each of the
records you configure. This buffer is circular, and there isn't a good
reason in your application to be seeing a buffer overflow or data overwritten error, except
if the timestamp (first sample) is being overwritten. The buffers are automatically set as large as possible to
minimize these types of errors.
This error can happen if too much time has elapsed between the start
trigger and reference trigger, causing the buffer to fill and the first
sample to be overwritten.The reason why it could be intermittent is the varying time between a
start trigger and the first reference trigger (slow and fast
triggers).
Here is one suggestion to avoid this:
1)In your earlier application you did not configure the number of samples to fetch to get the initial timestamp. Since you arent looking at the data, try setting this number to 1, or even 0. Also, configure less records or use a slower sampling rate to allow the buffers to be larger or take longer before having to overwrite any samples.