LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2 axis LabVIEW Front panel control

Solved!
Go to solution

Hello,

I want to know if there is a 2 Axis front panel control in LabVIEW (something like simple virtual joystick) or any one on the community has used it. Urgent help will be greatly appreciated.

 

Thanks in advance.

-Lab

0 Kudos
Message 1 of 5
(3,769 Views)

Hello,

 

Unfortunately, LabVIEW does not have any native controls that mimic the functionality of a virtual joystick. I am trying to find an example of something that might be able to be used but have not run across anything yet. It looks as though there are some examples on how to use an actual joysick here: http://decibel.ni.com/content/docs/DOC-3466 . I'll look further and will see if I can find anything else.

 

-Zach

0 Kudos
Message 2 of 5
(3,730 Views)
Solution
Accepted by topic author lab_boy

Hi,

 

I'm not sure if this will help.

 

But take a look at flight simulator.

Message 3 of 5
(3,724 Views)

I would have assumed that there exists an elegant solution to this problem, if not, I'd suggest using an empty XY graph with a free cursor.  Set the plot scales to your favorite scale -1 to 1, 0 to 1.  Add the cursor and disable the "Cursor Scrolls Graph" property.  If you'd like, you can add an event handler for the "Cursor Release" event to snap the cursor back to the center.  Just wire the proper XY cluster to the Cursor Position (depends on the scale you've chosen).  Read the value of your "control" using the Cursor Position property. 

 

-Darin

0 Kudos
Message 4 of 5
(3,703 Views)

Hey Darin,

Thanks, that is exactly what I am doing right now. I wish they had a simple 2D control.

 Thank you all.

-Lab

0 Kudos
Message 5 of 5
(3,676 Views)