05-28-2009 01:01 PM
Hi all,
I'm trying to figure out whether I can do the following with the NI6602. I haven't programmed yet for this device.
I want to:
Configure 2 channels as counters of TTL pulses.
I want to use a gate (external or generated inside the NI6602) to count during these gate periods (can be down to us) the TTL pulses on those channels.
I want to have the values of the different gated periods saved in memory (dma). No more than 1000 gate periods
I would like to use Linux and no Labview.
Maybe it's too general, but I couldn't find any example of how to do this kind of DMA with the NI6602.
Thanks in any case.
05-31-2009
06:04 PM
- last edited on
12-16-2024
02:23 PM
by
Content Cleaner
I think you can do all of these with any counter card, but you will have to must use the driver NI-DAQmx for your Linux Distribution (DAQmx Base has less functionalities). To configure DMM transfer mode, follow this instructions (you can find equivalent of these LabVIEW functions/properties in the C API)
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019O65SAE&l=en-US
DAQmx for Linux install the C API. In the readme.txt you can read...
"Q: How do I use the C API for NI-DAQmx on Linux?
A: You will need the C API header file and shared library. A symbolic link for
the C API header file is located using the following path:
/usr/local/include/NIDAQmx.h
A symbolic link for the C API shared library is located using the following
path:
/usr/local/lib/libnidaqmx.so"