07-16-2009 11:35 PM
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
Solved! Go to Solution.
07-20-2009 10:20 AM
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
07-20-2009 10:36 AM
07-20-2009 12:43 PM
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
07-21-2009 05:04 PM
Hey Darin,
Thanks, that is exactly what I am doing right now. I wish they had a simple 2D control.
Thank you all.
-Lab