View Single Post
  #3   Spotlight this post!  
Unread 17-02-2014, 20:17
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: How to program a toggle switch to stop a motor from spinning..?

Here are two LabVIEW examples.
They are just two different styles, pick what you are most comfortable with.
When the limit switch is wired Normally Open (NO) it reads in the code as false when pressed.
Wired Normally Closed it reads in the code as true when pressed.
Wire to Ground (GND) and pick only one of the other two NC or NO.
If you look at the side of the limit switch, most of them have a diagram labeled GND, NO, and NC to show where the wires go.
If there is no label, then use a multimeter to figure out which is the ground and which is NC or NO.



__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 17-02-2014 at 20:33.
Reply With Quote