Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Response and DMA

Hello
 
I am converting a application from traditional DAQ to DAQmx. (Version 8.3)
Programming Language: Visual Basic 6.0
Hardware: PCI 6602
 
I am using counter 0 as a gate to buffered event counting (Synchronous). Generating a continuous pulse train using counter 0  and feeding the output of the counter to counter 3 which has been setup for buffered event counting. Buffered event counting will start once it starts to get the pulse and it s been externally triggered using another pulse generated at counter 7. All these operations are inside a loop and the loop exists till the counter is armed.
 
I have encountered two problems in this.
 
1) Data written before it could be read by the system
 
2) It s comparitively slower than traditional DAQ
 
Any help would be appreciated.
 
Thanks
0 Kudos
Message 1 of 2
(3,446 Views)
Hello Rajaram,
 
There is an example located on your hard drive how to do continuous buffered digital event measurement using the DAQmx C API located here : C:\Program Files\National Instruments\NI-DAQ\Examples\DAQmx ANSI C\Counter\Count Digital Events\Cnt-Buf-Cont-ExtClk\ .
 
Take a look at this to gain an idea on how to approach your programming by looking at which functions are called and with what parameters. You will need to then port these ideas over to you VB code.
 
Post back if you need further help.
 
Good Luck!
 
Tom | NIUK
0 Kudos
Message 2 of 2
(3,426 Views)