LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Activating LED on game controller

I have this game controller: http://www.amazon.com/Microsoft-Wireless-Controller-Windows-Console/dp/B004QRKWKQ?ie=UTF8&psc=1&redi...

 

It has LEDs on that I'd like control from my program. Using LabVIEW's controller Vi's i only see stuff that reads data from the controller and doesn't post data to it.

 

Anyone ever had luck on doing this?

 

Thanks

0 Kudos
Message 1 of 5
(3,756 Views)
0 Kudos
Message 2 of 5
(3,740 Views)

Sadly, NI's Joystick functions do not use the full functionality of DirectInput.  On my Windows 10 machine, 12 DirectInput devices are shown, with my Controller being Device 11.  However, the Query Input Devices shows one keyboard (correct), one mouse (correct), but only 8 "other" (= Joysticks) devices, stopping just before Device 11, the Controller.

 

I think I may have suggested this on the NI Idea Exchange -- I'm going to check, and if it's not there, I'll add it ...

 

Bob Schor

Message 3 of 5
(3,719 Views)

I've just posted returning ALL Joystick entries to LabVIEW on the LabVIEW Idea Exchange.  If this is something you'd like NI to do, click on the link, decide if you agree with what I wrote, and if so, Kudo the Post.  NI looks at the number of Kudos, and if there are none, simply "Declines" the Idea.

 

Bob Schor

0 Kudos
Message 4 of 5
(3,711 Views)
Thanks for the replies. The point what im trying to do is to give feedback back to the operator through the controller.

I have come to the understanding that I don't think i can control the LEDs on the particular xbox controller i have. These LEDs seem to be controlled by the dongle and identify the number of the controller connected to it.

The examples referenced only take input from the controller.

I did find a thread here of someone trying to use the DirectX Xinput dll to control the "rumble" motor vibration feedback on the controller. This would work for me and i'm currently trying to figure out how to get the dll function calls to work.

That post is here: http://forums.ni.com/t5/LabVIEW/XInput-DirectInput-and-Xbox-Controllers/td-p/2271350

but unfortunately the OP didnt post his solution
0 Kudos
Message 5 of 5
(3,645 Views)