Quote:
Originally Posted by Jill
how do you program limit switches in LabView? We want a door to pivot up when we press a button, and go until it hits a limit switch. Then we want to press the button and have it go back down until it hits another limit switch. Would it be difficult to run both up and down with one button? (When button's pressed, if top switch=1 then run motor backwards to the bottom switch, and vice versa.)
|
Sure. Here's an image that demonstrates it. I haven't tested this, just off the top of my head. It uses a feedback node to keep track of the motor value, set to 1 at the start, and when anyone of the limit switches goes off, it negates the value. If you have any questions, feel free to ask.