Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   digital input (http://www.chiefdelphi.com/forums/showthread.php?t=101115)

tilky 25-01-2012 13:43

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.

Mark McLeod 25-01-2012 14:10

Re: digital input
 
1 Attachment(s)
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 IO
The vi's you'll use most are:
  • Get Digital In
  • Get Analog In
There is an extended set also available called "Enhanced Mode"

zaphodp.jensen 25-01-2012 14:10

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

tilky 25-01-2012 14:27

Re: digital input
 
:D Thanks

tilky 26-01-2012 14:22

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?:ahh:

tilky 26-01-2012 14:36

Re: digital input
 
nevermind we got it.


All times are GMT -5. The time now is 11:38.

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