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

gotham liked gotham's profile
12 hours ago
DIY Robocars via Twitter
RT @RoboticMasters: Monaco GP Circuit in the Donkey Sim (coming soon). Including buildings, tunnel and all! https://github.com/robotics-masters/sim-donkeycar-f1/tree/f1-tracks @diyr…
yesterday
DIY Robocars via Twitter
RT @breadcentric: Here are the details of #AWSDeepRacer finals: https://blog.deepracing.io/2020/12/01/aws-deepracer-league-finals-2020-round-1-schedule/ #awsreinvent2020 #AWSreInvent https://t.co/ovqsjp8V…
yesterday
DIY Robocars via Twitter
RT @breadcentric: #AWSDeepRacer League #awsreinvent2020 Open race is on Dec 1st - Dec 31st in three categories, 15 DeepRacer Evo (with LIDA…
yesterday
DIY Robocars via Twitter
RT @a1k0n: @SmallpixelCar @diyrobocars It's just something that's easy to track with chroma keying. I ended up using different colors on th…
Monday
DIY Robocars via Twitter
Monday
DIY Robocars via Twitter
RT @TinkerGen_: "The Tinkergen MARK ($199) is my new favorite starter robocar. It’s got everything — computer vision, deep learning, sensor…
Nov 23
DIY Robocars via Twitter
Nov 23
DIY Robocars via Twitter
RT @roboton_io: Join our FREE Sumo Competition 🤖🏆 👉 https://roboton.io/ranking/vsc2020 #sumo #robot #edtech #competition #games4ed https://t.co/WOx…
Nov 16
DIY Drones via Twitter
First impressions of Tinkergen MARK robocar https://ift.tt/36IeZHc
Nov 16
DIY Robocars via Twitter
Our review of the @TinkerGen_ MARK robocar, which is the best on the market right now https://diyrobocars.com/2020/11/15/first-impressions-of-tinkergen-mark-robocar/ https://t.co/ENIlU5SfZ2
Nov 15
DIY Robocars via Twitter
RT @Ingmar_Stapel: I have now explained the OpenBot project in great detail on my blog with 12 articles step by step. I hope you enjoy read…
Nov 15
DIY Robocars via Twitter
RT @DAVGtech: This is a must attend. Click the link, follow link to read the story, sign up. #chaos2020 #digitalconnection #digitalworld ht…
Nov 15
DIY Robocars via Twitter
RT @a1k0n: Got a new chassis for outdoor races (hobbyking Quantum Vandal) but I totally didn't expect that it might cause problems for my g…
Nov 11
DIY Drones via Twitter
First impressions of the Intel OpenBot https://ift.tt/36qkVV4
Nov 10
DIY Robocars via Twitter
Nov 9
More…