Go to Post CHALLENGE: A dozen Krispy Kreamers to the first team to make a three-pointer during a break at an NBA game. - Natchez [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 25-01-2012, 13:43
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
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.
Reply With Quote
  #2   Spotlight this post!  
Unread 25-01-2012, 14:10
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,833
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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 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"
Attached Thumbnails
Click image for larger version

Name:	CypressMenu.jpg
Views:	31
Size:	44.9 KB
ID:	11569  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 25-01-2012 at 14:18.
Reply With Quote
  #3   Spotlight this post!  
Unread 25-01-2012, 14:10
zaphodp.jensen zaphodp.jensen is offline
Alumni and Mentor of 3130
AKA: Pierce Jensen
FRC #3130 (East Ridge Robotics Ominous Raptors (E.R.R.O.R.'s))
Team Role: Mentor
 
Join Date: Oct 2009
Rookie Year: 2009
Location: Minnesota
Posts: 76
zaphodp.jensen is a jewel in the roughzaphodp.jensen is a jewel in the roughzaphodp.jensen is a jewel in the rough
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
Reply With Quote
  #4   Spotlight this post!  
Unread 25-01-2012, 14:27
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
Re: digital input

Thanks
Reply With Quote
  #5   Spotlight this post!  
Unread 26-01-2012, 14:22
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
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?
Reply With Quote
  #6   Spotlight this post!  
Unread 26-01-2012, 14:36
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
Re: digital input

nevermind we got it.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:26.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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