08-29-2006 04:20 AM
08-30-2006 04:18 AM - edited 08-30-2006 04:18 AM
Hi,
what version of LabVIEW are you using (I'm assuming LabVIEW since you've posted on the LabVIEW forum even though you've said you're using a traditional daq function call that looks pretty 'C' styled), and what version of the data acquisition driver?
I'm assuming you're going directly to the DLL since you said GPCTR_Watch(devNumber,gpctrNum,entityID). Can you please post your code back here?
Which entityID are you looking for - I'm assuming the COUNT?
Depending on the code set up / architecture you're using, there may be another way of handling this (using a timed loop with the clock coming from a particular source can't be done since that would involve DAQmx)
Is it software timed retrieval of the count, and since it's taking 30mS that limits the rate you can poll it at? You could set up for buffered event counting instead, providing a clock signal, of whatever rate you need, to the gate input (this could come from another counter set for continuous pulse generation) and then do a GPCTR Read Buffer instead, so you'd pull back a series of values rather than just one.
Unfortunately, the DAQPad 6020E isn't supported by DAQmx as this driver set usually runs a little faster.
http://www.ni.com/support/daq/versions_portable.htm#du
What was your reason for choosing to go with USB connectivity? (If you're on a laptop for instance, then that would limit the choice of other bus technologies) This may not be an issue with the USB per se, but related to what else is going on with the laptop and your code at the same time.
Thanks
Sacha Emery
National Instruments (UK)
Message Edited by SachaE on 08-30-2006 10:28 AM