View Single Post
  #5   Spotlight this post!  
Unread 07-12-2008, 03:09
whitetiger0990's Avatar
whitetiger0990 whitetiger0990 is offline
Registered User
no team
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2006
Location: Earth
Posts: 157
whitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of lightwhitetiger0990 is a glorious beacon of light
Re: Programing a Digital Input on the DS in Labview

Quote:
Originally Posted by popo308 View Post
I see the pin where is says "Driver Station Digital Input (1-8)" but what goes there? a constant? or do i need to wire that to a different block?
The DS Get Digital Input VI outputs a boolean array of length 8. You can wire it to an Index Array to get the individual values. The attached picture should output the first 2 digital inputs, and the last one (remember an array of n elements goes from 0 to n-1), as boolean indicators on the VI front panel.
Attached Thumbnails
Click image for larger version

Name:	dsinput.png
Views:	149
Size:	1.7 KB
ID:	6996  
__________________
print$q=chr(ord($q)+$1)while("7443-0201-8465130105-12-03135-82482113-06-7672-070208-0613-70"=~/(-?\d\d)/g);
Reply With Quote