Go to Post Nobody wins a Regional on Thursday. - Bill Moore [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-01-2015, 07:26
Gabriel Mendes Gabriel Mendes is offline
Registered User
FRC #1382
 
Join Date: Jan 2015
Location: Brazil
Posts: 6
Gabriel Mendes is an unknown quantity at this point
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
  #2   Spotlight this post!  
Unread 21-01-2015, 07:43
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
  #3   Spotlight this post!  
Unread 21-01-2015, 08:06
Gabriel Mendes Gabriel Mendes is offline
Registered User
FRC #1382
 
Join Date: Jan 2015
Location: Brazil
Posts: 6
Gabriel Mendes is an unknown quantity at this point
Re: Problem With Limit Switch

Thanks Alan it was the wiring, now the program is working properly
  #4   Spotlight this post!  
Unread 21-01-2015, 08:43
Tungrus Tungrus is offline
Registered User
no team
 
Join Date: Mar 2013
Location: Somewhere
Posts: 375
Tungrus is a jewel in the roughTungrus is a jewel in the roughTungrus is a jewel in the roughTungrus is a jewel in the rough
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.
  #5   Spotlight this post!  
Unread 21-01-2015, 14:02
philso philso is offline
Mentor
FRC #2587
 
Join Date: Jan 2011
Rookie Year: 2011
Location: Houston, Tx
Posts: 940
philso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond reputephilso has a reputation beyond repute
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.
  #6   Spotlight this post!  
Unread 21-01-2015, 22:57
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,723
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Problem With Limit Switch

Quote:
Originally Posted by philso View Post
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.
  #7   Spotlight this post!  
Unread 22-01-2015, 10:31
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,125
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Problem With Limit Switch

Quote:
Originally Posted by philso View Post
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.



Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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