Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Problem With Limit Switch (http://www.chiefdelphi.com/forums/showthread.php?t=133267)

Gabriel Mendes 21-01-2015 07:26

Problem With Limit Switch
 
Hi everyone, I am having trouble programming a limit switch in labview that when it activates a LED indicator would blink in the front panel, but whenever someone presses it the LED would just stay active or it wouldn't activate at. Does someone know whats wrong with my program?



<--------------Begin-----------><---------------------Teleop-------------->
Open->DigitalInputRefNum set->DigitalInputRefNumget->DigitalInputGetValue->BooleanIndicator(LED)

Thanks, Go Team #1382

Alan Anderson 21-01-2015 07:43

Re: Problem With Limit Switch
 
How do you have the switch wired? It should connect between the "ground" and "signal" pins of a Digital Input on the roboRIO.

Your paraphrase of the program looks okay. We can't tell whether the program itself is correct.

Gabriel Mendes 21-01-2015 08:06

Re: Problem With Limit Switch
 
Thanks Alan it was the wiring, now the program is working properly

Tungrus 21-01-2015 08:43

Re: Problem With Limit Switch
 
Reminder for those using limit switch, do not use 2 pin connector for DIO pins to connect to ground and 5V, its essentially shorting the 5V. Use 3 pin PWM connector and remove the center pin or disconnect the center wire (typically red).

Please correct me if I am wrong.

philso 21-01-2015 14:02

Re: Problem With Limit Switch
 
Make sure you are not using the limit switch as the end stop for your mechanism. They often break when you do that.

GeeTwo 21-01-2015 22:57

Re: Problem With Limit Switch
 
Quote:

Originally Posted by philso (Post 1431593)
Make sure you are not using the limit switch as the end stop for your mechanism. They often break when you do that.

Correct. You want the load to engage the limit switch as it goes past, not as it slams into the switch.

Ether 22-01-2015 10:31

Re: Problem With Limit Switch
 
Quote:

Originally Posted by philso (Post 1431593)
Make sure you are not using the limit switch as the end stop for your mechanism. They often break when you do that.

Some teams extend the switch lever with a piece of small flexible tubing. That way the load simply bends the tubing and does not crush the lever.





All times are GMT -5. The time now is 02:41.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi