Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   "simple" button problem (http://www.chiefdelphi.com/forums/showthread.php?t=73690)

Mr. E 05-02-2009 18:58

"simple" button problem
 
1 Attachment(s)
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.

Cecil 05-02-2009 20:48

Re: "simple" button problem
 
1 Attachment(s)
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

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)

dmoody92 05-02-2009 22:30

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.

star_lancer 07-02-2009 10:56

Re: "simple" button problem
 
Quote:

Originally Posted by Cecil (Post 814981)
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

Re: "simple" button problem
 
What items can you not find?

Greg McKaskle

rfry11 07-02-2009 13:09

Re: "simple" button problem
 
1 Attachment(s)
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!

AndrewN 07-02-2009 13:34

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.


All times are GMT -5. The time now is 02:23.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi