LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Counting edges

I am using a PCI-MIO-16E1 DAQ board. I want to generate pulses using the STC
counter on the board and count the pulses using the second counter available.


There is a vi available specifically for counting the no of rising edges
in the examples/daq/counter/STC. This requires the source information to
be specified. The information is in terms of the PFI/RTSI lines.

There is also a vi specifically for generating a pulse train using the STC
counter.This generates pulses at the outpinof the counter used for generating
the pulses.

I am not able to relate the source information on the counting vi to the
outpin of the generating counter.

Please let me know

Thanks
Vijay
0 Kudos
Message 1 of 2
(3,140 Views)
Hi Vijay,

You are correct in using those two examples. To re-iterate, you will use the VI called Count Edges (DAQ-STC).vi and the one called Generate Pulse Train (DAQ-STC).vi. Now if you scroll over to left on both of these VIs you will see Gate Specifications and Source Specifications. You will notice that the control beside PFI line has the value "default". You will notice on the pinout for that card that counter 1's source is PFI3/GPCTR1_SOURCE, and counter 0's output is GPCTR0_OUT. So when you specifiy defaults it uses the appropiate labeled pin, which in this case defaults to PFI 3 and GPCTR0_OUT.

In other words, open the Count Edges (DAQ-STC).vi and enter counter 1 in the counter control. Then open the Generate Pulse Train (DAQ-STC).vi and enter count
er 2 in the counter control. Leave the slide control on PFI Line (default). Connect pins 2 and 42 together. Run the Generate Pulse Train (DAQ-STC).vi and then the Count Edges (DAQ-STC).vi. This should work. Hope this helps.
0 Kudos
Message 2 of 2
(3,140 Views)