Example Code

Xbox 360 LabVIEW Interface

Code and Documents

Attachment

Introduction

This project shows the power of LabVIEW and its ability to read the inputs from an Xbox 360 controller

Steps to Complete

  1. Make sure that you have a Windows compatible Xbox360 controller and dongle
  2. Turn the controller on
  3. Run the VI and you will notice that you are able to view the inputs from the controller on the front panel of the VI

Additional Notes

There are no side to side inputs to the analog thumbsticks due to project implementation. You are however able to see these very easily if you move the front panel up to the cluster indicators.

National Instruments
Applications Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
momian
Member
Member
on

Could you save this file in LabView 8.0?

thanks,

Jackster
Member
Member
on

Windows 8.1 with LV2012 does notwork...Is there a solution? Works well with 2010 and XP. The controller is seen as ITE, not Xbox.

Thanks for any help.

kdrlzmlr38
Member
Member
on

didn't work for wired one.

Bin2022
Member
Member
on

I tried many examples, but even both (https://forums.ni.com/t5/Example-Code/Xbox-Control-UI/ta-p/3525774) and (https://forums.ni.com/t5/Example-Code/Xbox-360-LabVIEW-Interface/ta-p/3498186) not work.

I found my joystick worked in an online test (https://gamepad-tester.com), so the problem comes from the Labview driver or app. 

Later I tried the following and then the above codes worked, for reasons unknown.

(1) I download the compatible Labview VISA driver (refer to https://www.ni.com/en-us/support/documentation/compatibility/16/ni-visa-and-labview-version-compatib...

(2) I assigned 2 rather than 0 to the device index to the Initialize Joystick VI.

Contributors