Go to Post And (the video) didn't show how to do the "Charlie Brown". I still don't know how to do this... GAH!!!! - Elgin Clock [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 29-01-2009, 19:48
starsROBOTICS starsROBOTICS is offline
Registered User
FRC #2276 (S.T.A.R.S)
Team Role: Engineer
 
Join Date: Mar 2008
Rookie Year: 2006
Location: texas, houston
Posts: 44
starsROBOTICS is on a distinguished road
2 Joysticks, 2 Triggers, 1 relay, 1 problem

Ok so i have looked at the threads and i found everyone of them to be similar to what i am asking and if it was what i was asking they didn't help much. So i am going to explain thoroughly. I want to have the 2 Triggers on the 2 joysticks controlling 1 relay to go forward when Button 1 of joystick 1 is pressed and reverse when Button 1 of joystick 2 is pressed and Neutral when none are pressed.

What i have done was unbundle both joystick buttons. Wired both button 1 of both Joysticks to their Seperate "select" function(T/F). Created a forward constand and wired it to the True statement of the select function and off for the false statement for the joystick 1. I did the same for joystick 2 but instead of forward i did reverse. i wired the right ends of both of the "Select" functions to a "or" Statement and wired them to the Relay set box.

I thought this would work but the relay doesn't reverse. it only goes in 1 direction.
Can anyone tell me why?

<added info>
I also looked at the digital sidecar and the relay light turns red when i push 1 trigger and the relay turns green when the other is pushed but the relay does not turn green just red
__________________

Last edited by starsROBOTICS : 29-01-2009 at 19:59. Reason: Missing info
Reply With Quote
  #2   Spotlight this post!  
Unread 29-01-2009, 21:18
a3aperez's Avatar
a3aperez a3aperez is offline
Registered User
no team
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Puerto Rico
Posts: 9
a3aperez is an unknown quantity at this point
Re: 2 Joysticks, 2 Triggers, 1 relay, 1 problem

Make sure you are using the right constants.

From the Set Relay help:

RelayValue specifies whether the relay is configured to move the motor in a forward or reverse direction.

Off (0) (Default) Specifies that the motors are off.

On (1) Specifies that the motors are on.

Forward (2) Specifies that the relay moves the motors in a forward direction.

Reverse (3) Specifies that the relay moves the motors in a reverse direction.
Reply With Quote
  #3   Spotlight this post!  
Unread 29-01-2009, 22:06
Burmeister #279's Avatar
Burmeister #279 Burmeister #279 is offline
What Time Is It?
AKA: Nick Burmeister
FRC #0279 (TechFusion)
Team Role: Programmer
 
Join Date: Nov 2008
Rookie Year: 2007
Location: Toledo
Posts: 207
Burmeister #279 is a glorious beacon of lightBurmeister #279 is a glorious beacon of lightBurmeister #279 is a glorious beacon of lightBurmeister #279 is a glorious beacon of lightBurmeister #279 is a glorious beacon of lightBurmeister #279 is a glorious beacon of light
Send a message via AIM to Burmeister #279
Re: 2 Joysticks, 2 Triggers, 1 relay, 1 problem

i'm not sure if this is the actual problem, and as i don't have labview on this computer, i have no screen shots, however, there might be a problem if it's confusing itself due to both being pressed. if you have a case structure around the entire area where you deal with the buttons, and then wire an XOR gate [Boolean pallet] into the case selector, and both buttons into the XOR. this will eliminate any problems with both buttons being pressed. after that, in the true portion of the case, have a second case structure to find the state of the first button. if it's true, then set the value of the relay you are changing, if it is false, use another case structure inside of the false case of the previous one to check for the second button.

AIM: Burmeister 279

I changed my mind and my computer and here's my example of what to do. the XOR is a special logic gate that makes only lets it work if one and ONLY one input is true.

need any more help : burmeister.twosevennine@gmail.com subject: programming help
Attached Files
File Type: vi relay help.vi (17.8 KB, 31 views)
__________________
WHAT TIME IS IT? TWO SEVEN NINE!!! [Team B =) ] Awards: 4 Safety, 2 Ind. Design, 2 Xerox, 1 Nat. Champs
2009 Buckeye Semi-Finalists (1014 & 695) || 2008 GLR Safety Award || 2006 GLR Safety Award
2005 Buckeye Regional Champs (67 & 274) & GM Industrial Design Award & Safety Award GLR Quarter Finalist & Xerox Creativity Award & Safety Award National Xerox Creativity Award & Curie Quarter Finalist (1126 & 180)
2004 Buckeye Delphi Driving Tomorrows Technology Award & Quarter Finalist GLR Champs Nationals Curie Division Finalist
2003 GLR GM Industrial Design Award || 2001 National Newton Division Winner & National Champions
2000 MI DaimlerChrysler Team Spirit Award

Last edited by Burmeister #279 : 29-01-2009 at 22:46.
Reply With Quote
  #4   Spotlight this post!  
Unread 29-01-2009, 23:05
starsROBOTICS starsROBOTICS is offline
Registered User
FRC #2276 (S.T.A.R.S)
Team Role: Engineer
 
Join Date: Mar 2008
Rookie Year: 2006
Location: texas, houston
Posts: 44
starsROBOTICS is on a distinguished road
Re: 2 Joysticks, 2 Triggers, 1 relay, 1 problem

Quote:
Originally Posted by Burmeister #279 View Post
i'm not sure if this is the actual problem, and as i don't have labview on this computer, i have no screen shots, however, there might be a problem if it's confusing itself due to both being pressed. if you have a case structure around the entire area where you deal with the buttons, and then wire an XOR gate [Boolean pallet] into the case selector, and both buttons into the XOR. this will eliminate any problems with both buttons being pressed. after that, in the true portion of the case, have a second case structure to find the state of the first button. if it's true, then set the value of the relay you are changing, if it is false, use another case structure inside of the false case of the previous one to check for the second button.

AIM: Burmeister 279

I changed my mind and my computer and here's my example of what to do. the XOR is a special logic gate that makes only lets it work if one and ONLY one input is true.

need any more help : burmeister.twosevennine@gmail.com subject: programming help
Dude not to be rude but you need to better explain things. That was the most confusing thing i read all day.
__________________
Reply With Quote
  #5   Spotlight this post!  
Unread 29-01-2009, 23:12
starsROBOTICS starsROBOTICS is offline
Registered User
FRC #2276 (S.T.A.R.S)
Team Role: Engineer
 
Join Date: Mar 2008
Rookie Year: 2006
Location: texas, houston
Posts: 44
starsROBOTICS is on a distinguished road
Re: 2 Joysticks, 2 Triggers, 1 relay, 1 problem

Quote:
Originally Posted by a3aperez View Post
Make sure you are using the right constants.

From the Set Relay help:

RelayValue specifies whether the relay is configured to move the motor in a forward or reverse direction.

Off (0) (Default) Specifies that the motors are off.

On (1) Specifies that the motors are on.

Forward (2) Specifies that the relay moves the motors in a forward direction.

Reverse (3) Specifies that the relay moves the motors in a reverse direction.
Ok instead of specifying 1,0,2, or 3 i right clicked the left side of the relay terminal and created a constant. I put the constant to the left of the select and wired it to the true statement. Would that be okay or does it have to be a numeric value as in 1,2,3, or 0?
__________________
Reply With Quote
  #6   Spotlight this post!  
Unread 30-01-2009, 01:21
a3aperez's Avatar
a3aperez a3aperez is offline
Registered User
no team
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Puerto Rico
Posts: 9
a3aperez is an unknown quantity at this point
Re: 2 Joysticks, 2 Triggers, 1 relay, 1 problem

Quote:
Originally Posted by starsROBOTICS View Post
Ok instead of specifying 1,0,2, or 3 i right clicked the left side of the relay terminal and created a constant. I put the constant to the left of the select and wired it to the true statement. Would that be okay or does it have to be a numeric value as in 1,2,3, or 0?
Here's a VI with what I understood you wanted to do.
http://www.filedropper.com/tworelayt...forwardreverse

Joystick 1, Button 1, moves the relay in reverse.

Joystick 2, Button 1, moves the relay forward.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
spike relay problem? Maxpower57 Electrical 15 09-04-2012 19:18
[OCCRA]: Problem with the compressor, pressure switch, or Bosch relay. BrittanyV OCCRA 3 16-10-2006 15:42
Joystick Triggers No Longer Work amateurrobotguy Technical Discussion 7 04-04-2006 13:58
Help! Programming question with triggers AsimC Programming 26 18-03-2004 11:00
AVB joysticks..and other analogue joysticks tml240 Kit & Additional Hardware 6 07-02-2004 12:45


All times are GMT -5. The time now is 12:01.

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