View Single Post
  #2   Spotlight this post!  
Unread 22-02-2016, 23:28
wt200999's Avatar
wt200999 wt200999 is offline
Texas Instruments
AKA: Will Toth
FRC #3005 (Robochargers)
Team Role: Mentor
 
Join Date: Mar 2006
Rookie Year: 2004
Location: Dallas, Texas
Posts: 323
wt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud ofwt200999 has much to be proud of
Send a message via MSN to wt200999
Re: Launchpad control panel outputs help

The joystick output block takes an array of Boolean values to define the output state on the TI LaunchPad.

Here are a couple of examples of setting the outputs with arrays:

Click image for larger version

Name:	Launchpad Switch Examples.png
Views:	24
Size:	48.4 KB
ID:	20156

If you have a couple of switches, you could do something similar to below:

Click image for larger version

Name:	Launchpad Switch Example 2.png
Views:	17
Size:	20.9 KB
ID:	20157

Note that in my examples above everything is zero indexed (the output names I set start with 0). On the TI LaunchPad documentation the outputs are 1 indexed (the output naming start with 1).
__________________
Programming in LabVIEW? Try VI Snippets!

FIRST LEGO League 2004 - 2005
FRC Team 870 Student 2006 - 2009
FRC Team 3005 Mentor 2013 -
Reply With Quote