Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

NI 9425 Count pulses ?

Hi, I have successfully configured NI 9425 and want to know if there is a posibility off counting number of pulses in known time? Thanks, Ive1
0 Kudos
Message 1 of 4
(3,645 Views)

Greetings, Ive1;

 

I have looked around a bit, and a starting point such as the example "Digital - SW - Timed Input" might be a good starting point. Since the acquisition will be software timed, the pulse's length will be important; pulses that are too fast will be problematic to count through software. 

 

Starting with the example, adding some logic into the loop that will add a number to an indicator after the boolean (connected to the read) is read might be your best bet.

 

By the way, the example is for the latest version of the drivers; for an older version, the example is split into two, named "Read Dig Chan" and "Read Dig Port".

 

Cordially,

 

Simon Perez

Applications Engineer

National Instrument

National Instruments
Applications Engineer
0 Kudos
Message 2 of 4
(3,618 Views)

Hi,

 

looking at pulse length; should a minimum width of 5 ms be ok?

 

Thanks for your reply!

 

 

0 Kudos
Message 3 of 4
(3,602 Views)

Greetings, ive1;

 

I'm not quite sure just what the minimum would need to be; however, 5ms seems to be a bit fast. I would say to try it with a known pulse, however, and seeing how accurate you can get it to be. Still, there will probably be some loss due to jitter since it is counting through software.

 

Codrially,

 

Simon Perez

Applications Engineer

National Instruments

National Instruments
Applications Engineer
0 Kudos
Message 4 of 4
(3,595 Views)