Log in

View Full Version : digital input


tilky
25-01-2012, 13:43
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.

Mark McLeod
25-01-2012, 14:10
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:

Get Digital In
Get Analog InThere is an extended set also available called "Enhanced Mode"

zaphodp.jensen
25-01-2012, 14:10
Under the Driver's Station Palette, there is an Get Digital IO.

WPI Robotics Library/Driver's Station/Compatibility IO/Get Digital Input

tilky
25-01-2012, 14:27
:D Thanks

tilky
26-01-2012, 14:22
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?:ahh:

tilky
26-01-2012, 14:36
nevermind we got it.