Go to Post "Scientists investigate that which already is; Engineers create that which has never been." - Albert Einstein - JamesCH95 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-02-2009, 18:58
Mr. E Mr. E is offline
Its physics or stamp collecting
FRC #1883
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Las Vegas
Posts: 38
Mr. E is an unknown quantity at this point
"simple" button problem

I'm new to LabView, so this is a big problem for me, but it's probably easily solved. We are trying to wire it, so that when we press a button on a joystick, it sends the signal to a relay which in turn turns a motor forward or backward. (So, actually, it's two buttons, but I'm just trying to get one to work for now.) I attached the program I have so far, but for all I know it could be entirely wrong. Can anyone tell me how to fix what I have, or give me an example program or something? Any advise would help.
Attached Files
File Type: doc button.doc (25.5 KB, 51 views)
  #2   Spotlight this post!  
Unread 05-02-2009, 20:48
Cecil's Avatar
Cecil Cecil is offline
Registered User
AKA: Alex Hummel
FRC #2010 (Lightning Bots)
Team Role: Mentor
 
Join Date: Dec 2008
Rookie Year: 2006
Location: Champion
Posts: 343
Cecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to beholdCecil is a splendid one to behold
Re: "simple" button problem

Here is what our team would do to set the relay. On the false side of the case, it just has it set the relay back to off. Hope this helps you out.
Attached Thumbnails
Click image for larger version

Name:	button.JPG
Views:	99
Size:	27.0 KB
ID:	7331  
__________________
I'm right 90% of the time, so why worry about the other 3%?
  #3   Spotlight this post!  
Unread 05-02-2009, 20:53
XXShadowXX's Avatar
XXShadowXX XXShadowXX is offline
They call me Cody.
no team (None currently :\)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pontiac; MI
Posts: 408
XXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud ofXXShadowXX has much to be proud of
Re: "simple" button problem

add a case structure

true input/ 1
false input/ -1

that input should give your the wanted result

i'll post again latter (my machine that runs labview can't connect to the internet)
__________________
Is now an engineer thanks to FIRST.

Last edited by XXShadowXX : 05-02-2009 at 20:56.
  #4   Spotlight this post!  
Unread 05-02-2009, 22:30
dmoody92 dmoody92 is offline
Registered User
FRC #3015
 
Join Date: Jan 2009
Location: Spencerport, NY
Posts: 37
dmoody92 is a jewel in the roughdmoody92 is a jewel in the roughdmoody92 is a jewel in the roughdmoody92 is a jewel in the rough
Re: "simple" button problem

As other have pointed is that you are getting the value from the button but not using it to modify the functionality of the code. Wire the button output to a condition statement that will range from 1 or -1 to the motor outputs.
  #5   Spotlight this post!  
Unread 07-02-2009, 10:56
star_lancer's Avatar
star_lancer star_lancer is offline
Programming Addict
AKA: Mike Berney
FRC #2346 (CRASH)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Kansas City
Posts: 30
star_lancer is a jewel in the roughstar_lancer is a jewel in the roughstar_lancer is a jewel in the rough
Send a message via AIM to star_lancer Send a message via Yahoo to star_lancer
Re: "simple" button problem

Quote:
Originally Posted by Cecil View Post
Here is what our team would do to set the relay. On the false side of the case, it just has it set the relay back to off. Hope this helps you out.
Hey, this is jolly good and all, but the people here at 2346 are confused what you did there, we can't get most of those items to show up in labview.
__________________
If you found anything I said helpful, please click the scales next to my post. I really appreciate those reputation points.
Team 2346 - Build, test, panic, repeat.
  #6   Spotlight this post!  
Unread 07-02-2009, 11:01
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,753
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: "simple" button problem

What items can you not find?

Greg McKaskle
  #7   Spotlight this post!  
Unread 07-02-2009, 13:09
rfry11's Avatar
rfry11 rfry11 is offline
Team 2791 Head Programmer
AKA: Ryan Fry
FRC #2791 (Bionic Bison)
Team Role: Programmer
 
Join Date: Oct 2008
Rookie Year: 2008
Location: Latham, NY
Posts: 6
rfry11 will become famous soon enoughrfry11 will become famous soon enough
Send a message via AIM to rfry11
Re: "simple" button problem

I'm with 2791, and I cannot seem to find the "thing" (for lack of a better word) that you used to select the button. If i'm being vague, I've attached a button to better show what exactly I cannot seem to find.
Thanks In Advance!
Attached Thumbnails
Click image for larger version

Name:	button2.JPG
Views:	51
Size:	28.1 KB
ID:	7347  
__________________
2008 Pascack Pandamonium Champions. Giant thanks to teams 25 and 11!
  #8   Spotlight this post!  
Unread 07-02-2009, 13:34
AndrewN's Avatar
AndrewN AndrewN is offline
it's alive!
AKA: Andrew Nicholson
FRC #1778 (Chill Out)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Edmonds, WA
Posts: 48
AndrewN is just really niceAndrewN is just really niceAndrewN is just really niceAndrewN is just really niceAndrewN is just really nice
Re: "simple" button problem

It's called "Unbundle by Name" and can be found in the third box "Cluster, Class and Variant" under 'Programming" on the functions pallet.
__________________
Andrew Nicholson
2011 FRC Robot Inspector (Seattle, Portland)
Mentor FRC 1778 "Chill Out", FTC 3018, 3940 "Hawks", 4434 "Heat Misers"

"Everything should be made as simple as possible, but no simpler."
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Different "Cam Suddenly Stops" Problem JohnC Programming 10 30-01-2007 21:37
New NEMO White Papers! "Creating a Killer Packet" and "25 Ways to Sponsor" Jessica Boucher Team Organization 0 10-08-2005 10:55
IFI Loader problem - "Invalid HEX file" wun Programming 9 22-09-2004 12:35
"Thunderbirds" Vs. "Team America" Which one will rule the box office? Elgin Clock Chit-Chat 3 07-09-2004 19:53
Potential Problem with "fighting over the goal" Kyle Fenton General Forum 4 17-02-2002 10:21


All times are GMT -5. The time now is 21:50.

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