Doug M
2005-09-01 23:42:47 UTC
rt,
Generally using the Traditional NI-DAQ C API you use the DIG_Block_In
to start the digitial input acquisition, whether you are doing finite
or continuous acquisition, and you do not have this function in any
kind of loop. Within the loop you read samples off the
buffer. There are quite a few examples that ship with the driver
that demonstrate various digital input tasks -- a good one to look at
would be C:\Program Files\National
Instruments\NI-DAQ\Examples\VisualC\Di\DIdoubleBufPatternGen653x.C.
However, I would highly recommend moving to our newer, much easier to
use API and driver, NI-DAQmx. NI-DAQmx supports the PCI-6534 and
is available for free download on our website. It too ships with
many examples on doing basic I/O functionality.
I hope this helps!
Doug M
Applications Engineer
National Instruments
Generally using the Traditional NI-DAQ C API you use the DIG_Block_In
to start the digitial input acquisition, whether you are doing finite
or continuous acquisition, and you do not have this function in any
kind of loop. Within the loop you read samples off the
buffer. There are quite a few examples that ship with the driver
that demonstrate various digital input tasks -- a good one to look at
would be C:\Program Files\National
Instruments\NI-DAQ\Examples\VisualC\Di\DIdoubleBufPatternGen653x.C.
However, I would highly recommend moving to our newer, much easier to
use API and driver, NI-DAQmx. NI-DAQmx supports the PCI-6534 and
is available for free download on our website. It too ships with
many examples on doing basic I/O functionality.
I hope this helps!
Doug M
Applications Engineer
National Instruments