Joystick and LabVIEW

3690839024?profile=original


This is just a very simple example of how you can use LabVIEW to readjoystick information ( and perform actions based on the input). In this
case I used Play Station 2 controler but any joystick can be used.


This is source code for LabVIEW ver 2009
JoystickExample.vi

Same source file for LabVIEW version 8.5
JoystickExample-ver85.vi

Screen shot of the code ( diagram) is located here

LabVIEW does come with an example as well located here ( in your dev environment)
labview\examples\input\InputDemo.llb

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Developer
    Automatic,

    Great just what I needed and now even with pictures. Gotta play on Monday when getting back to office due my gamepad is there :)

    Now we just need to figure best way to send this info to our quads...

    --jp
  • Auto,

    This is a present problem i am having. Having written a complete Gimbal control system in 8.5 just upgraded to 9...and LV will NOT under win7 see any of the gamepads (2....1 for gimbal, 1 for airframe & systems control)

    Is there a different code mechanism to see the gamepads/joysticks?

    Very cool bit of you have posted though,.....going to try it in 9 see what happens for me..but if i cant get it to work...then all my gimbal control system is wasted unless i re-write to 9.

    thoughts?

    Mike.
This reply was deleted.

Activity