Log in

View Full Version : Limit Switch Indicator on Dashboard.


dag0620
15-02-2010, 20:43
So I was working on the Auto. Code for the robot when one of the Mentors told me that he wants me to figure out how to hook up the following scenario. After looking online, looking at the default code, and just playing around with it, I'm stuck!!!! So here’s the scenario....

Basically we have a limit switch that when rigged up to some other mechanics, goes true when the ball is in range to be kicked by our kicker. What I want is that once this limit switch turns true, I want a Boolean LED on the Dashboard to illuminate so that Drivers know a ball is within range of the Kicker. Any Ideas on how to do this?

Thank-you so much in advance!

mobilegamer999
15-02-2010, 20:50
are you using the standard dashboard that came on the netbook?

dag0620
15-02-2010, 20:50
are you using the standard dashboard that came on the netbook?

Yes I am.

apalrd
15-02-2010, 22:04
Then the indicator light for your DIO channel will light up when the switch is pressed. If you want to make it easier on them, make it a BIG light. I recommend using some physical LED that is always in their field of vision, its easier on the operator.

chris1592
15-02-2010, 22:33
The way we have it set up on our robot is when the switch is pushed down, the light turns off on our dashboard. When the switch is not pushed down, the light is a solid green. This allows our kicker to always be in the coked position.

Radical Pi
15-02-2010, 23:10
The specific instructions vary depending on what language you are using, but overall theory is you add another indicator to the dashboard in LabVIEW (use the example dashboard project) and then modify the datatype for the dashboard and write the value to the indicator. In whatever language you use open the example dashboard and make the same change to the datatype. Sorry i can't help out much more.

dag0620
16-02-2010, 09:49
The specific instructions vary depending on what language you are using, but overall theory is you add another indicator to the dashboard in LabVIEW (use the example dashboard project) and then modify the datatype for the dashboard and write the value to the indicator. In whatever language you use open the example dashboard and make the same change to the datatype. Sorry i can't help out much more.

Hey It's No problem. You've told me much more the I knew before.

FYI I am using LabView - I probably should have included that in the first post.