Do you want to hold down a button to make the door go up and hold down another button to make it go down, with the door stopping if neither button is pressed?
Or do you want it to act like a commercial overhead door and go all the way up (or down) after a short tap on the up (or down) button, and go automatically to the middle and stop there when a third button is tapped?
The first one is easy, almost trivial. The second one takes some careful program design and an appropriate set of feedback sensors on the door position.
I think I have a similar question- couldn’t find anything anywhere else, so I hope this is the right thread…
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.