Hi Ariel,
The way that you are currently acquiring the analog data with the
ReadSingleSample method in a loop is entirely software timed. The
speed at which your PC can execute the read function is causing the
limitation of 30 samples per second. If you need a faster sampling
rate I recommend setting up a hardware timed acquisition so that the
internal timebase of the USB-6008 is used. For your application you
could continuously acquire data from the channel. Depending on the
state of the digital line, you could read the data to a different array
or file. I would recommend starting with one of the shipping examples
for continuous acquisition located in the following directory:
C:\Documents and Settings\All Users\Documents\National
Instruments\NI-DAQ\Examples\DotNET2.0\Analog In\Measure
Voltage\ContAcqVoltageSamples_IntClk.
Regards,
Andrew W
National Instruments