View Full Version : "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.
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.
XXShadowXX
05-02-2009, 20:53
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)
dmoody92
05-02-2009, 22:30
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.
star_lancer
07-02-2009, 10:56
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.
Greg McKaskle
07-02-2009, 11:01
What items can you not find?
Greg McKaskle
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!
It's called "Unbundle by Name" and can be found in the third box "Cluster, Class and Variant" under 'Programming" on the functions pallet.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.