LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use a boolean to determine whether to incr or decr a variable?

I need to use a switch on the front panel to determine whether the program increments a variable or decriments the variable. I'm not sure how to do that. What I would like is an enable on a +1 or -1 function.
0 Kudos
Message 1 of 3
(2,434 Views)
You could use a case structure with a boolean input.  Put the decriment in one case, and the incriment in the other.
Sr. Development Technician
Timken Research
The Timken Co.
0 Kudos
Message 2 of 3
(2,429 Views)