05-23-2014 04:52 AM
Hi
i have a problem using joystick; when i was using it with windows 7 it works,but when i tried to use it with windows 8,even if it is detected in windows,it doesn't work with any of my VIs(labview 2012).is it a problem related to labview,or there is a solution to solve that.
thanks
Solved! Go to Solution.
05-23-2014 09:08 AM
I developed a VI using LabVIEW 2012 on a Windows 7 PC that used a Joystick as the primary input device. I ported it to an Ultrabook running Windows 8.1, on which I installed LabVIEW 2013 SP1. Code worked just fine. Same code now runs on both PCs.
BS
05-23-2014 07:55 PM
can u show me how did u integrate the joystick in ur VI ,or maybe because i have a tactil screen
05-23-2014 09:45 PM
I am traveling and don't have access to my code, but I'll try to post something on Sunday when I return.
05-23-2014 09:49 PM - edited 05-23-2014 09:50 PM
ok thanks a lot,and enjoy your time 😉
05-26-2014 08:09 AM
I wrote this VI to investigate how to integrate a Joystick into my LabVIEW code (I called the VI "Joystick Sampler"). It has two parts -- the lower function, "Query Input Devices", makes an array of devices, their names and number of Axes, Buttons, and POV "hats", in an array called "Joystick Info". Look at this first, paying attention to the Array Index that seems to correspond to your Joystick when you plug it into a USB port.
The upper code will sample (one of the) Joystick(s) at the rate of 10 Hz, allowing you to test buttons, axes, etc. Note that the first "Initialize Joystick" function takes a parameter (default = 0) that corresponds to the Joystick Index you discovered by examining the Joystick Info array (see previous paragraph) -- if your Joystick, for example, seems to be at Index = 4, wire a "4" into the Initialize Joystick function.
BS