Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   Microswitch only returns 0 (http://www.chiefdelphi.com/forums/showthread.php?t=125136)

MHSrobotics2853 25-01-2014 03:03

Re: Microswitch only returns 0
 
DigitalInput input(5) is declared as part of the constructor. Calling input.Get() always returns zero when nothing is connected. Probing ground versus signal on the digital sidecar DIO line is reporting 4 Volts when nothing is connected. We tried swapping out cRIOs, Digital modules, digital module cable to sidecar, and sidecars and the problem still persists. We are trying to uninstall windriver and re-install next since we accidentally installed 3.3 on a 32-bit system. I don't know if this would be the cause of the problem but it's worth a try. We don't have the robot signal light installed, but the led that is next to the location where the wire would go is blinking.
Any other suggestions would be helpful as we've never seen this problem before for the past 3 years. Thanks.

kevin.li.rit 25-01-2014 08:50

Re: Microswitch only returns 0
 
Maybe try setting the if fatal return 0 to return 2 instead to see if it reads 0 it or is meeting the fatal condition in get().

MHSrobotics2853 25-01-2014 18:27

PROBLEM SOLVED :D
 
We solved our problem we had found the source of our error, we had not imaged our cRIO correctly, we used our image from last year. But anyways thank you so much for all your help.

DonRotolo 26-01-2014 09:04

Re: Microswitch only returns 0
 
Quote:

Originally Posted by MHSrobotics2853 (Post 1331600)
Please don't be angry with us :/ Nuances in text and the group we have this year is pretty new to the forums.

Not angry! Just getting more forceful in asking for specifics. You see, we really DO want to help solve the problem: It's how WE learn, too.

Verify the Digital Sidecar connections for us please, and if that is as specified above, then it's not the switch.

Answer these specifically:
What is the RSL doing?
What are the 3 green LEDs on the DSC (by the RSL connection) doing?

Thanks.


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

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