Go to Post Remember, only YOU can set a good examples for rookies to search CD first before asking questions or responding!! - Foster [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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 22-02-2016, 21:57
Sjtumlin16 Sjtumlin16 is offline
Registered User
FRC #4521
 
Join Date: Feb 2016
Location: Harrison, OH
Posts: 2
Sjtumlin16 is an unknown quantity at this point
Launchpad control panel outputs help

How would the labview code be made so that if a limit switch is pressed a light turns on on the control panel which is using a Launchpad, from what i can see the joystick output block only allows 1 non-addressable output to be turned on.
Thanks.
Reply With Quote
  #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
  #3   Spotlight this post!  
Unread 23-02-2016, 06:15
Sjtumlin16 Sjtumlin16 is offline
Registered User
FRC #4521
 
Join Date: Feb 2016
Location: Harrison, OH
Posts: 2
Sjtumlin16 is an unknown quantity at this point
Re: Launchpad control panel outputs help

Thank you w200999! That's exactly what I needed.
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 07:44.

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