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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ttl counter & output

Hi,
Can anyone help with a problem?
I would like to count the rising edge of 2 ttl pulses from two linear encoders. When the total counts from both encoders reaches a preditermined value I would like to creat a single pulsed output.
i.e. Count A + Count B =X
I have used some of the examples supplied in Labview 7.1 and can count the ttl signals for one of the encoders. How do I count both encoder simultaniously? and how do I creat a digital output after so many counts?
 
Any advice is welcome.
 
0 Kudos
Message 1 of 3
(2,468 Views)
Hello aw1,

count the 2nd ttl-line like the first 🙂

You can use boolean "Imply" function to detect rising/falling edges. Convert output of imply to 0/1 and add up your counter. Do this for both lines. The add both counters and check with your limit. If limit is reached, call your digital output routine. After this clear your counters and start over again...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 3
(2,463 Views)

Thanks GerdW,

This seems stright foward enough.

0 Kudos
Message 3 of 3
(2,455 Views)