Timothy,
I don't see where in the attached code you are adjusting the delays and
I think I"m a bit confused about your application. Please correct
me if I'm wrong but I think your intent is to have the generation and
acquisition sessions running at the same frequency but with an offset
between each other? IE, signal acquired 2ns after
generation, for example.
Have you tried using the same clock source (CLKIN or OnBoard) as your
clock source for both sessions and use the data delay feature to
introduce the offset? Data Delay (and exported clock delay) gives
you the ability to introduce a delay between when the clock arrives and
when it actually samples the data. For generation, it introduces
delay between the exported sample clock and the data (allowing for
adjusted setup and hold times for instance). Delays can be added
to the data or clock for generation or to the data on
acquisition. Refer to the specifications for the 6562, there are
some limitations when using this delay feature relative to frequency of
operation.
There are some examples that ship with LabVIEW that use this data delay (and exported clock delay) feature.