Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Count only when a external TTL signal is high

Hallo,
I'm using LabView 6.1 on WinXP with a NI6014 DAQ Board...
I have to count a some TTL pulses only when another TTL signal is high (start the count when the signal goes high and stop it when the signal goes low). Can I program the DAQ to do this (like a gate function) so that in the meanwhile my program can do other things, and only at the end I read the result of the count?

Thank you,
Pixo
0 Kudos
Message 1 of 4
(2,883 Views)
Hello Pixo,

Thank you for your inquiry regarding counters on the PCI-6014. It sounds like you would like a gate function for the counter that you are using. There is a gate for each counter that enables the counter when the gate line is high and disables the counter when this line is low. The I/O connector pin assignment and signal descriptions can be found here . To use the counter you must first configure it and then use a Counter Start VI. Then when the gate is high the counter will increment and the value can be read at the end of the program like you had stated. I have attached a great example VI to get you started with counters. Other examples like this can be found in LabVIEW 6.1 under �Find Examp
les from the LabVIEW startup screen.

I hope these resources help. Let me know if I can further assist you.

Shea C.
Applications Engineering
0 Kudos
Message 2 of 4
(2,883 Views)
Thank you for the answer, but my problem is a little bit different 😞
I saw already both the example and the documentation, what I don't know how to do is, for example, to set the AIGATE signal to one of the IPFs...:"> (isn't AIGATE what I need for my measurement?)
Really stupid, isn't it?:">
0 Kudos
Message 3 of 4
(2,883 Views)
Pixo,

Sorry for the misunderstanding. The gates for counter 0 and counter 1 are configured to PFI lines 9 and 4 respectively by default. You should be able to connect your signal to these PFI lines to act as a gate for the counter of you choice.

If you look on page 28 of the product manual you can see the gate/PFI assignment as I mentioned above.
http://www.ni.com/pdf/manuals/370636a.pdf

I aslo attachted a counter example program that may get you stared using the gate feeature of the counters on your board. Other examples similar to this can be found from Find Examples on the LabVIEW startup screen. I hope this better answers you problem. Let me know if you need anything else.

Shea C.
Applications Engineering
0 Kudos
Message 4 of 4
(2,883 Views)