Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Limit Switch Indicator on Dashboard. (http://www.chiefdelphi.com/forums/showthread.php?t=82775)

dag0620 15-02-2010 20:43

Limit Switch Indicator on Dashboard.
 
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

Re: Limit Switch Indicator on Dashboard.
 
are you using the standard dashboard that came on the netbook?

dag0620 15-02-2010 20:50

Re: Limit Switch Indicator on Dashboard.
 
Quote:

Originally Posted by mobilegamer999 (Post 920874)
are you using the standard dashboard that came on the netbook?

Yes I am.

apalrd 15-02-2010 22:04

Re: Limit Switch Indicator on Dashboard.
 
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

Re: Limit Switch Indicator on Dashboard.
 
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

Re: Limit Switch Indicator on Dashboard.
 
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

Re: Limit Switch Indicator on Dashboard.
 
Quote:

Originally Posted by Radical Pi (Post 921011)
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.


All times are GMT -5. The time now is 01:57.

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