I think this detailed description reflect nicely how high-speed non-uvc data capture work
for better or worse you can't just connect usual analog output to it.
Somewhat related:
(no code).
older fx2 experiments, there by now seems to be whole library of programs for those older devices in digital instrumentation sector
Some documentation on earlierĀ sgi board called Sirius, you can see board was 10-bit internally but small font around analog inputs said they are 8bit really!