Thread: Where to start?
View Single Post
  #6   Spotlight this post!  
Unread 20-01-2015, 09:01
mshafer1 mshafer1 is offline
Programming Mentor
AKA: Matthew Shafer
FRC #3937 (Breakaway)
Team Role: Mentor
 
Join Date: Jan 2015
Rookie Year: 2008
Location: Arkansas
Posts: 55
mshafer1 is an unknown quantity at this point
Re: Where to start?

Quote:
Originally Posted by DN1LE View Post
The array example in the 2014 to 2015 Porting Guide is not helping. Just to understand how it works, any code examples of pushing a button to activate an output?
I am attaching a snippet (LabVIEW created picture that can be put back in LabVIEW to turn back into code). In the past, the buttons were in a cluster that could be unbundled, but now they are in an array. In text based languages, one gets a particular part of an array by placing an index in square brackets. The LabVIEW equivelant is the index array vi, which takes an array and the index you want. In this example, I have indexed button 0 (the trigger on most joysticks) and 3 (just a random other option) to resize the index vi to get more or fewer hover over it until the blue squares appear, then click and drag the bottom one.
Attached Thumbnails
Click image for larger version

Name:	joystick example.png
Views:	44
Size:	28.0 KB
ID:	17908  
Reply With Quote