Go to Post Once you go to your first (FIRST) competition... thats when you fall in love with it. - Jaine Perotti [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 17-01-2011, 00:40
SuperS_5's Avatar
SuperS_5 SuperS_5 is offline
[Certified LabVIEW Developer]
FRC #1219
 
Join Date: Dec 2010
Rookie Year: 2010
Location: Canada
Posts: 140
SuperS_5 will become famous soon enoughSuperS_5 will become famous soon enough
Re: Multiple outputs

Here is an example. The zip is just the subVIs.
Attached Thumbnails
Click image for larger version

Name:	JoyStickToEnum.png
Views:	38
Size:	4.2 KB
ID:	9709  
Attached Files
File Type: zip JoyStickButtonToEnum.zip (14.8 KB, 16 views)
__________________
Mike B
Reply With Quote
  #2   Spotlight this post!  
Unread 26-01-2011, 17:40
robotjac robotjac is offline
Registered User
no team
 
Join Date: Jan 2011
Location: San Diego, CA
Posts: 5
robotjac is an unknown quantity at this point
Re: Multiple outputs

This is the error code I get when tried to use the codes. Can you tell me what I did wrong?
Attached Thumbnails
Click image for larger version

Name:	Buttons.jpg
Views:	19
Size:	105.9 KB
ID:	9831  
Reply With Quote
  #3   Spotlight this post!  
Unread 26-01-2011, 17:52
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: Multiple outputs

1) Your Motor Output needs to be told which motor you are talking about.
2) You have not defined what to do with all the possible cases of joystick buttons. At the very least you need a "default" case to cover all uncovered bases.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #4   Spotlight this post!  
Unread 26-01-2011, 18:33
robotjac robotjac is offline
Registered User
no team
 
Join Date: Jan 2011
Location: San Diego, CA
Posts: 5
robotjac is an unknown quantity at this point
Re: Multiple outputs

Can you send me some screen examples? I'm new and I can't visualize what you're telling me. Thank you.
Reply With Quote
  #5   Spotlight this post!  
Unread 26-01-2011, 19:15
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: Multiple outputs

Here's what you need:

1) Add a Motor reference (this motor needs to be opened in Begin.vi)

2) Put the cursor on the cases and right-click to choose "Add Case for Every Value"
Then look for every new case that needs a motor value added to it.
The output tunnel carrying the motor value will be solid when you have them all. It'll have a white center if you haven't fixed all the missing cases.
Attached Thumbnails
Click image for larger version

Name:	AddMotorRef.jpg
Views:	24
Size:	17.4 KB
ID:	9834  Click image for larger version

Name:	AddEveryCase.jpg
Views:	22
Size:	38.0 KB
ID:	9835  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 26-01-2011 at 19:31.
Reply With Quote
  #6   Spotlight this post!  
Unread 26-01-2011, 23:34
robotjac robotjac is offline
Registered User
no team
 
Join Date: Jan 2011
Location: San Diego, CA
Posts: 5
robotjac is an unknown quantity at this point
Re: Multiple outputs

Thank you! Everything is working great now.
Reply With Quote
  #7   Spotlight this post!  
Unread 02-02-2011, 15:46
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: Multiple outputs

As an aside, here is how I would select between multiple joystick or custom DS buttons.
Attached Thumbnails
Click image for larger version

Name:	WhichButton.jpg
Views:	139
Size:	23.3 KB
ID:	9938  
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 03-02-2011 at 07:15.
Reply With Quote
  #8   Spotlight this post!  
Unread 02-02-2011, 15:54
IisMathwizard's Avatar
IisMathwizard IisMathwizard is offline
Programming Mentor
AKA: Mathwizard
FRC #1248 (Titanium Allies)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Berea-Midpark High school
Posts: 60
IisMathwizard is an unknown quantity at this point
Re: Multiple outputs

I would've broke both the motors up into two case structures and then have a boolean series hooked up to nested case structures.
__________________

jRIO 2013 Project
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 21:19.

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