|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
"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.
|
|
#2
|
||||
|
||||
|
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.
|
|
#3
|
||||
|
||||
|
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) Last edited by XXShadowXX : 05-02-2009 at 20:56. |
|
#4
|
|||
|
|||
|
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
|
||||
|
||||
|
Re: "simple" button problem
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.
|
|
#6
|
|||
|
|||
|
Re: "simple" button problem
What items can you not find?
Greg McKaskle |
|
#7
|
||||
|
||||
|
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! |
|
#8
|
||||
|
||||
|
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.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |