LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Boolean ones count and then switch on even sum

I am trying to switch a load with a trigger button of a joystick which basically gives a boolean output. I want to switch on alternative taps on the trigger button. I have written code to check even and odd sums but could not make part that actually sum '1' of boolean input. Switch should remain ON until next tap (zero to one OR one to zero shift). Any help?

0 Kudos
Message 1 of 4
(811 Views)

If you've "written code", attach it so we all have a chance to fix it.

0 Kudos
Message 2 of 4
(792 Views)

See if this can give you some ideas:

 

altenbach_0-1656139519980.png

 

0 Kudos
Message 3 of 4
(754 Views)

Depending on how the external switch works, maybe a little more code is needed. See here.

0 Kudos
Message 4 of 4
(750 Views)