|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
digital input
We have an external DI switchboard that we want to know how to code. When we open driverstation, it comes up under the i/o with DIs, so we know the computer sees it, but we don't know how we would be able to use them in the code. We tried opening a DIO in begin, but that is only for i/o's on the digital sidecar.
|
|
#2
|
|||||
|
|||||
|
Re: digital input
By default the digital IO you get from the Cypress board connected to the Driver Station is in "Compatibility Mode".
The vi's to get the data inside your code can be found in the programming palette: WPI Library -> Driver Station -> Compatibility IOThe vi's you'll use most are:
Last edited by Mark McLeod : 25-01-2012 at 14:18. |
|
#3
|
|||
|
|||
|
Re: digital input
Under the Driver's Station Palette, there is an Get Digital IO.
WPI Robotics Library/Driver's Station/Compatibility IO/Get Digital Input |
|
#4
|
||||
|
||||
|
Re: digital input
Thanks |
|
#5
|
||||
|
||||
|
Re: digital input
ok we ran into another problem. We know how to read it, but then how would we read only one of them, and then see if it is true?
![]() |
|
#6
|
||||
|
||||
|
Re: digital input
nevermind we got it.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|