Ron,
Thanks for your response. Actually, the trigger and convert clock is
generated externally by a 40 MHZ FPGA and are very accurately phase
locked. I have verified on an oscilloscope that they are not jumping
around.
I'm acquiring a repetitive waveform so I have a trigger and then,
after about 10us, a train of ~ 1000 convert clocks to acquire the
waveform. After a delay the sequence starts again. I'm acquiring
continuously because I can't afford to miss waveforms so, after the
initial trigger, the trigger is ignored. I then rely on the fact that
I know how many samples are in each waveform to display and save the
data to a file.
I believe the problem happens when the Labview software initially
enables the DAQ. If the DAQ is enabled during the dead
time, it won't
see a convert pulse prior to the first trigger. If it is enabled right
after the trigger, I will see a convert pulse before the trigger.
I acquire in two different modes. On acquires 50% of the waveform and
has convert pulses present 50% of the time. The second mode acquires
almost 100% of the time with only a 100us deadtime at the end of each
waveform. In the 50% mode I miss the first pulse about 50% of the
time. In the ~100% mode I haven't yet missed a pulse. When I miss the
first pulse, all the subsequent data gets shifted by one sample, and
the last sample becomes what should be the 1st sample of the next
waveform.
So my theory is that the DAQ needs to see at least one convert pulse
after it is initialized by the software prior to being triggered.
Otherwise it eats my first sample.
Thanks for your help,
Barry