|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools |
Rating:
|
Display Modes |
|
#16
|
||||
|
||||
|
Re: Labview Joystick Buttons...
thank you so much
![]() |
|
#17
|
||||
|
||||
|
Re: Labview Joystick Buttons...
I can't wire it from the boolean to 0,1 to the close. I have drive close on the outside of my main loop, and it's wired to the drivedevref global variable, but when I try to wire to it the wire goes dotted. When I try to make another drive close inside the loop and wire to it I get the same problem
Edit: Or is it not possible to set it to drive close? I just wanted to do that so I could test the button input at our next meeting... Last edited by Mikesername : 17-01-2009 at 19:16. |
|
#18
|
||||
|
||||
|
Re: Labview Joystick Buttons...
The only thing that needs to be sent to the Close VI is the DevRef wire, which is the pink wire that comes out of the "Open Jaguar" or "Open 2 Motor", etc, VI.
![]() - Austin |
|
#19
|
||||
|
||||
|
Re: Labview Joystick Buttons...
i can get the relay to turn off but not able to engage it...so when I press the button the relay shuts off
|
|
#20
|
||||
|
||||
|
Re: Labview Joystick Buttons...
So you want to press a button to turn the relay on, release the button and do whatever else you need then be able to hit the same button to turn it off?
Or maybe I'm still misunderstanding you? - Austin |
|
#21
|
||||
|
||||
|
Re: Labview Joystick Buttons...
What about pressing a button to turn on the compressor?
Then pressing another one to turn it off? Sorry if I'm derailing the thread, but I figured it was still somewhat related so instead of starting [another] thread on joystick buttons... Last edited by Mikesername : 17-01-2009 at 21:33. |
|
#22
|
||||
|
||||
|
Re: Labview Joystick Buttons...
I don't want to turn the relay on and off. I want it always on. But i want it to either have a forward polarity or a reverse polarity. (indicated by green for forward and red for reverse on the spike itself) Can you explain to me how to do this?
|
|
#23
|
||||
|
||||
|
Re: Labview Joystick Buttons...
Oh, ok, I think I'm getting a better understanding.. Are you trying to make one button that toggles between forward and reverse, or are you trying to do one button for forward and another for reverse?
- Austin EDIT - Or forward when held down, reversed when unpressed? |
|
#24
|
||||
|
||||
|
Re: Labview Joystick Buttons...
I would like to know how to do both!!! haha
|
|
#25
|
|||
|
|||
|
Re: Labview Joystick Buttons...
You could use a case structure attached to the button, or one of those boolean selectors with the question mark.
For the case structure, you would just put the relay function in the C/S, then wire a constant to the input. The boolean selector would be similar but smaller and simpler, and if you know what Im talking about, I'd use it. Go here for how to use the relay function (as well as any other first function):http://decibel.ni.com/content/docs/DOC-2631 If you right click on the input node and select create->constant it will put an enum there with forward and reverse settings. Because it is an enum, the three states will be 0, 1, 2 for forward, reverse and off, I think (in no particular order, check the enum for the real values). Hope that helps get you on your way. That should be enough to do both of those scenarios. |
|
#26
|
||||
|
||||
|
Re: Labview Joystick Buttons...
A picture of this would be much appreciated
![]() |
|
#27
|
||||
|
||||
|
Re: Labview Joystick Buttons...
Can anyone just make one of these programs and make a printscreen.
I'm desperate to figure this out and so far i've been unsuccessful. I need to use a joystick button to engage a relay forward, and reverse, and off....Please help! |
|
#28
|
||||
|
||||
|
Re: Labview Joystick Buttons...
Hey all, a bit late, but I have made a simple VI for retrieving a single button's boolean state based on it's enumerated value. It hooks up just like the Get Axis sub-VI, but with an Unsigned Byte (8-bit) input hook for a button enumerator control.
Here's a screenshot: Here's a copy of the VI: Last edited by ShotgunNinja : 18-01-2009 at 16:53. |
|
#29
|
||||
|
||||
|
Re: Labview Joystick Buttons...
Quote:
Usually I would just post a screenshot and explain in the post, but since there's cases inside of cases I wouldn't be able to show you everything without a screenshot for every possible combination, so Instead you can just download the code. (I'll attatch it to this post) I have comments in the code that explain everything I did and why. I don't know that this is the best or most efficient way to do what you are trying to do, but it is one solution. If you have and questions about the code feel free to ask! And if you find any errors please let me know! - Austin |
|
#30
|
||||
|
||||
|
Re: Labview Joystick Buttons...
this is what i have so far if anyone can build from this that would be absolutely amazing
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How do you program joystick buttons in LabVIEW? | darkpheonix | NI LabVIEW | 10 | 13-04-2014 10:20 |
| Buttons on a Attack 3 Joystick useing LABView | morg102 | NI LabVIEW | 14 | 02-02-2010 23:28 |
| buttons in LabView | Pneumaticsman | NI LabVIEW | 4 | 12-01-2009 18:14 |
| Buttons to Pins on Joystick | yarb65 | Electrical | 1 | 24-08-2007 20:39 |
| Assigning Joystick buttons.... | archiver | 2001 | 5 | 24-06-2002 00:59 |