Go to Post Speaking about healthier, the Texas air was sooooooooo much cleaner than NJ air, I felt my life expectancy being extended another 5 years. - The Chinese Guy [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 21-02-2011, 14:41
Yodamadashi Yodamadashi is offline
Registered User
None #3019
 
Join Date: Feb 2011
Location: Scottsdale, AZ
Posts: 3
Yodamadashi is an unknown quantity at this point
Limit Switch Issue

Hello,

We are currently trying to program our limit switch so that it limits the range of our arm (we have it so that when the arm hits the switch, the arm will be unable to move against the switch).

We have all the logic and programming finished, but the limit switch is always returning a true value. We have checked the wiring many times but the switch always shows up as a true value.

We are opening the DIO and getting the value from the DIO Get, and we tested the switch many many times, and unfortunately it always gives a true value, even if the switch is being pressed or not pressed.

Things we did: Changed Switches, Rewired, Changed Slots, Tested Switch with an indicator and a probe.

The switches were actually working (electrical test), they registered a value of true or false. However, the DIO shows up as always true in the labview reference get.

Any help on debugging this issue would be very helpful!
Reply With Quote
  #2   Spotlight this post!  
Unread 21-02-2011, 15:46
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: Limit Switch Issue

Please describe in detail exactly how you have the switch wired. What connections on the switch are going to what connections on the control system?

Can you show a screen capture of the program? It would help to see the relevant parts of both Begin and Teleop.
Reply With Quote
  #3   Spotlight this post!  
Unread 21-02-2011, 16:08
Yodamadashi Yodamadashi is offline
Registered User
None #3019
 
Join Date: Feb 2011
Location: Scottsdale, AZ
Posts: 3
Yodamadashi is an unknown quantity at this point
Re: Limit Switch Issue

I have added the jpg's to the attachments.

The teleop logic right now is missing (we removed it so we can just test the values with a probe/indicator).

I have also linked a picture of the wiring.
Attached Thumbnails
Click image for larger version

Name:	code pic 2.jpg
Views:	45
Size:	88.8 KB
ID:	10246  Click image for larger version

Name:	code pic.jpg
Views:	38
Size:	110.5 KB
ID:	10247  Click image for larger version

Name:	wiringDiagram.jpg
Views:	35
Size:	25.5 KB
ID:	10248  
Reply With Quote
  #4   Spotlight this post!  
Unread 21-02-2011, 16:21
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: Limit Switch Issue

Quote:
Originally Posted by Yodamadashi View Post
I have also linked a picture of the wiring.
Your wiring is wrong.

The DIO pins have an internal pullup resistor to +5 volts. When nothing is connected, or when your switch is open, the value will be TRUE. When your switch is closed, the value will be...TRUE.

You need to put the switch between the SIG and (-) pins (the white and black wires on a standard PWM extension cable). Do not connect anything to the center +5 pin. That way, when the switch is closed, the SIG pin will be pulled to ground and read FALSE.
Reply With Quote
  #5   Spotlight this post!  
Unread 21-02-2011, 16:42
Yodamadashi Yodamadashi is offline
Registered User
None #3019
 
Join Date: Feb 2011
Location: Scottsdale, AZ
Posts: 3
Yodamadashi is an unknown quantity at this point
Re: Limit Switch Issue

Thank you for your quick reply before shipping out!

We will try it out right now!
__________________
The pen is mightier than the sword.

Code:
ClrHome
1->X
While X=1
Output(1,1,"HI!")
End
Disp "Cheater"
Team 3019 (Chaparral Robotics)
Reply With Quote
Reply


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 20:30.

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