LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

toggle when either of two inputs go high

I have two inputs when the conditions from either are met they will go high, I'm looking for logic that will toggle the output state when either of them go high but not toggle when they return back to low. I tried a JK flip flop but that's not what I'm looking for.

Please post as graphic not vi, I'm using 4.0

thanks
Ron
0 Kudos
Message 1 of 6
(2,964 Views)
Ron,

Here's a couple ways. There are undoubtedly many other possibilities. Whenever either of the inputs transitions from low->high the output state will toggle, regardless of the state of the other input.

Method 1 uses the nifty (and IMHO underutilized) 'x implies y' logic block, though granted it isn't as easy to glance at and understand the behavior.

Method 2 uses logic that's more straightforward to interpret.

-Kevin P.
ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.
Download All
Message 2 of 6
(2,964 Views)
Hi Ron -- here is another way -- three images for all the case structures. thanks VNIU
Download All
0 Kudos
Message 3 of 6
(2,964 Views)
I am sorry, I attached the stage 1 file wrong .. here is the correct one
0 Kudos
Message 4 of 6
(2,964 Views)
Thanks for the code.

What are the objects with the arrows in them (in1&2 and output?), I'm new to labview and I have never seen them before. Do they exist in 4.0?

Ron
0 Kudos
Message 5 of 6
(2,964 Views)
Input1 and Input2 are just boolean controls, and Output is a boolean indicator.
The arrows got added (~v6?) to help users tell controls from indicators. Back in v4 etc, you can only tell by the border
=====================================================
Fading out. " ... J. Arthur Rank on gong."
0 Kudos
Message 6 of 6
(2,964 Views)