From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I read input from a USB joystick in LabWindows?

I am using LabWindows 7.0, and I want to read input from a USB
joystick. I understand that I need to use ActiveX, but so far I
haven't been able to find any explicit directions, or sample code. On
Microsoft's website I found something about raw input functions, such
as GetRawInputDeviceList. It is supposed to be declared in winuser.h,
but in the version of that file that comes with LabWindows 7.0, the
function is not prototyped. Any direction would be much appreciated.
0 Kudos
Message 1 of 2
(3,079 Views)
Hello

Check out the following
href="http://digital.ni.com/public.nsf/websearch/42B604435E3F9604862565E20043CD30?OpenDocument">link

for info on this. Basically, CVI does not have built in libraries for
controlling third party USB devices, usually the manufacturer of the
device provides an interface for it. But you can use VISA to be able
to talk to your joy stick. Check out the link for more information on
this.

Bilal Durrani
NI
0 Kudos
Message 2 of 2
(3,079 Views)