Jump to content

Labview and Xbox


Fubu

Recommended Posts

Hi

I´m creating an aplication with labview and I need to use a ugitar hero controller or an xbox 360 controller. The controller already works in windows vista but it is recognized as a Human Interface Device HID.

I have only use the usb ports in labview as COM (serial) ports and I do not know how to get data from de controller. I need to know the packet the controller or the guitar is sending to the computer.

I hope that some one already have a program that can do this or maybe someone has an idea how could I achieve it.

Are there any libraries for USB or any tutorials?

Thanks

Link to comment

QUOTE (Fubu @ Apr 9 2008, 11:46 PM)

Hi

I´m creating an aplication with labview and I need to use a ugitar hero controller or an xbox 360 controller. The controller already works in windows vista but it is recognized as a Human Interface Device HID.

I have only use the usb ports in labview as COM (serial) ports and I do not know how to get data from de controller. I need to know the packet the controller or the guitar is sending to the computer.

I hope that some one already have a program that can do this or maybe someone has an idea how could I achieve it.

Are there any libraries for USB or any tutorials?

Thanks

There is probably no way around some external code interfacing through the Call Library Node and possibly even wrapping something up in an external C wrapper DLL.

Possible pointers could be libusb, an Open source C library originally from Unix to communicate with USB devices and usbhidioc, a C source code example how to access HID devices in Windows.

Looking for these two search terms in Google should bring you some good pages. Although not many of them with ready made LabVIEW solutions.

Rolf Kalbermatter

Link to comment

Disclaimer: I know nothing about this stuff. I passed your query along to other NI R&D staff who do. This is the reply I got.

If folks want to control HW in LV, they generally have 2 options:

(1) have a driver for their HW. Use the driver, generally through DLL calls

(2) use NI-VISA to bit bang devices from user mode

Here are some webpages explaining how to use NI-VISA to control HID USB devices in LabVIEW.

"USB Instrument Control Tutorial"

"USB RAW Control Communication in LabVIEW"

HID issue "Why Won't Windows Install The VISA Driver For My USB Device?"

"Using HID Compliant Devices with VISA Driver Development Wizard"

But Vista is special: "How Do I Communicate with My HID Compliant USB RAW Device in Windows Vista?"

Hope it helps.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.