Log in

View Full Version : Using Limit Switches in LabVIEW


VeedotJaydot
14-02-2009, 13:02
I'm confused on how to use limit switches in labview, first off, are they digital or analogue, and where is the .vi that opens limit switches?

chmp09
14-02-2009, 15:18
Limit switches are digital. All you have to do is use the dio in open vi to initialize the port. The dio in get vi will return a boolean.

airnate
14-02-2009, 16:01
The DIO (Digital Input Output) VI that chmp09 refers to is in

WPI Robotics Library-> IO -> DigitalInput -> GetValue.vi

The digital input will typically default to True (e.g. is electrically pulled up to +5V) so if you wire a normally open (N.O.) limit switch between the signal pin and the ground pin, the GetValue.vi input will go False when the switch is closed.