From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

counting the number of pulses generated using 6602

hi
 
we are using the pxi-6602(counter/IO) along with SCB-68.
the problem we are encountering is that,we want count the
number of pulses generated.
we are using the counter0 and generating the
pluse, using the example VI Genrate Finite pulse(TIO).VI
which we are able to capure at the CTR0-out.
we want to count the number of pulses generated at
CTR0, so we have connected to the gate of CTR1
and we are running the example vi Measure Pluse NI(TIO)
we are not able to count back the number of pulses generated.

can any one guide us ....
are we heading in the right
1)is it possiblt to count and measure the number of pulse generated.
2)is it neccessary to specify the PFI line in the measuring/counting.
3)output of one counter is connected to gate of the other counter to measure. is it right
4)since this is the first time we are using counter/timers, please guide us, about connecting the
  out and source and gate in scb-68.
 
thanking you
rags
0 Kudos
Message 1 of 4
(4,044 Views)

Hi Rags,

In order to generate a finite pulse train and to measure the pulse width, you will need to use a total of three counters.  Two counters to generate the train and one to measure the width.  With the Finite Pulse Train (NI-TIO) VI example, if you choose to generate your pulse train on counter 1, wire the output of CNT0 (terminal 5 in the SCB-86) to the Gate of CNT1 (terminal 8).  With this example program you do not need to specify the PFI line.

To measure the pulse width, wire the output of CNT1 (terminal 9) to the gate of the counter you are using for the measurement. 

Is there a particular reason you are using the Traditional DAQ driver examples?  I would recommend using the DAQmx driver, it is more robust and will improve your overall application preformace, in fact, this tutorial: Advantages of NI-DAQmx describes many of the benifits.  It will even take care of the routing for your pulse train internally!  You might consider using the DAQmx base shipping examples: Gen Dig Pulse Train-Finite VI and Meas Pulse Width VI instead of the examples you are trying to use now. 

 

Micaela N
National Instruments
0 Kudos
Message 2 of 4
(4,015 Views)

Hi Micaela,

Thank you  for the reply and guidelines.The main reason for us to use the traditional NI_DAQ is the device old and is n

not supported by the NI_DAQmx. Let me try out this and get abck to you on this ,if any further problem occurs

 

Regards

Rags(Raghavendra)

 

 

0 Kudos
Message 3 of 4
(4,012 Views)
Good news!  According to the NI-DAQ Driver Support, the PXI-6602 is supported by the DAQmx 7.5 driver.  You can use your 6602 and have all of the benefits of DAQmx!
 
 
Micaela N
National Instruments
0 Kudos
Message 4 of 4
(4,002 Views)