Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Using and configuring the BNC 2121

Hi,

 

We have recently bought a BNC 2121 from National Instruments. We would like to set-up and use the eight plugs on the board as counters and in order to do measures in a test. We have tried to use the example code included in the NI-DAQ directory, the file "TIOEventCountwithPrescaling.C", but when we run this program it only enables the counting if the port corresponds to a source (in other words, it only works for the PIF 39 or 35, which are both of type SRC). On the other hand, we know that we should be able to do what we pretend because we have done the test with the Measurement & Automation software. It's only that we need to do the same with a C code on Lab/Windows CVI. We have checked the help files and the rest of the examples, but we

simply can't make the functions to change the behaviour of the board's plugs (apparently it is all set by default).

 

Thank you very much for your help.

0 Kudos
Message 1 of 2
(5,609 Views)

Hi m.alcocer,

 

First of all the BNC-2121 is a terminal bloc that works with E,M,S series DataAcquisition boards. The number of counter Task that you can implement depends on the type of board you are using. Know that you can find examples in direct relationship with your hardware. Since the search for examples in the hardware section, select your hardware and after this select an example in "Hardware input and output - DAQmx - Counter Measurements"; these examples are very helpfull to understand counters measurement.

What kind of DAQ boards do you use, M, E, S series, which reference?

 

Best regards,

 

 

0 Kudos
Message 2 of 2
(5,600 Views)