NI Home > Community > NI Discussion Forums

LabVIEW

Showing results for 
Search instead for 
Do you mean 
Reply
Member
hieu-nguyen@Hotmail.com
Posts: 14
0 Kudos

How to read data from USB game pad by using USB RAW- Bulk.vi

My game pad is recognized by installing a USB raw device and configuring NI MAX. USB RAW -Bulk .vi is run. However, there is no data in Bulk out buffer. How to read data from USB game pad ?

Knight of NI
Dennis_Knutson
Posts: 33,894
0 Kudos

Re: How to read data from USB game pad by using USB RAW- Bulk.vi

A gamepad should not be recognized by MAX. Did you even try the normal windows HID driver and the built-in LabVIEW functions (Connectivity>Input Devices) for a gamepad/joystick? Adding a USB RAW device is usually done when you have exhausted all other options.

Member
hieu-nguyen@Hotmail.com
Posts: 14
0 Kudos

Re: How to read data from USB game pad by using USB RAW- Bulk.vi

because I am a labview beginner. could you explain how to setup game controller in labview by use Initialize Joystick.vi and how to read data from game controller. I create vi to read data by using joystickAcquire.vi and Initialize Joystick.vi. However, it do not work. could you see it  and help me to figure why it did not work ?

Knight of NI
Dennis_Knutson
Posts: 33,894
0 Kudos

Re: How to read data from USB game pad by using USB RAW- Bulk.vi

Don't initialize more than once. Place that and a close outside a while loop. Also, make sure you have removed anything you might have done with the VISA wizard and that the controller shows in windows device manager as using the hid.dll driver.