Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Buffer Read problems from PXI-6608

I am trying to read timestamps from PXI-6608 using the
buffer read function. I tried 100 KHz, 20 MHz as well as the Max internal timebase but not successful. On the other hand, when I read counts, there is no problem but then I don't get the timestamps fast enough. My signal is from a function generator (currently) is a pulse at 1 KHz to a PXI-6534 that,
in turn, triggers the PXI-6608 on every change detection.

Can somebody help me to get the timestamp via buffer read.

Thanks
Senior Test Engineer
nkamal@hotmail.com
0 Kudos
Message 1 of 2
(3,105 Views)
Hi nk,

You will definitely want to use buffered event counting. There will be an NI-DAQ shipping example that demonstrates how to code for buffered event counting. In LabVIEW you can find this by selecting Help >> Find Examples >> Hardware Input and Output >> Counters >> NI-TIO. If you are using a text based programming language or Visual Basic, the examples are installed by NI-DAQ when you install NI-DAQ. You have to explicitly select support for your programming language when you install NI-DAQ and it will install the examples for you either in the "National Instruments\NI-DAQ\Samples" directory or the "National Instruments\MeasurementStudio..." directory.

The main concept is that in buffered event counting, you will be counting events on your s
ource and your gate signal will latch the current count into a buffer. This buffer is a location in PC memory which you have to read from using a buffer read function. Essentially, if you declare a buffer of 100 points, each time you get a gate signal it will latch that value and store it in the buffer. You will read blocks from the buffer using your buffer read function. Anyway, hope that helps. Have a good day.

Ron
0 Kudos
Message 2 of 2
(3,105 Views)