LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Counting both rising and falling edges PXI 6251

Hi

I'm using NI-PXI-6251 to count edges on the port 2.7 input.
This card only have 2 counters input (Ctr0 and Ctr1).

I use Ctr1 for another application (frequency measurement on another channel).

So I must use only Ctr0 to count both rising and falling edges.

I tried with no success, since I can configure the ctr0 input only to falling OR rising edge.


Thanks for your answers
0 Kudos
Message 1 of 3
(3,200 Views)

Hi,

I advise you to have a look at the function DAQmxCreateCIAngEncoderChan . This one is used to get the value of an angular encoder but you could use it in order to count the rising and falling edge by using the decoding type DAQmx_Val_X2 which is used to count the rising and falling edges of signal A.

Regards,

0 Kudos
Message 2 of 3
(3,185 Views)
Thank you very much, Maxime, It works !!!
0 Kudos
Message 3 of 3
(3,154 Views)