Go to Post We're engineers. We fix problems, not complain about them. - plnyyanks [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 29-12-2008, 11:44
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: USB input controller how to.

It isn't clear what it is you are attempting to do. I think you are trying to read a joystick on the PC. In that case, you will be using the Input Device Control VIs. I think the primary question is how to use the device number input.

This number is determined by the OS when the OS discovers the devices plugged into the USB bus. If devices are plugged in when you run your program, you can often hard code the number, but this will not travel well to other computers, and will have issues when the joysticks are plugged in after running, etc.

The way to use this is to run the VI Query Input Devices. For fun, you can open and run it interactive. It will produce an array of info about the joysticks and other devices. This will sometimes be surprising as laptops will often list a joystick even when one isn't plugged in. This is because they can have an HID device that is actually a specialized joystick, or they can have a BT bridge device that supports both mouse and a joystick. The joystick may not be there at the moment, but since it can show up when BT is ready, they declare it early.

Anyway, the device index to use is the index into the array returned by the Query call. If doing this interactively, you may want to list the items into a listbox and let the user select from the joysticks. More likely, you want to search the array for the device name looking for the mfg name you expect in the array.

If I'm way off on what you are asking, please try again.

Greg McKaskle
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
USB to controller board chicklet ExarKun666 Control System 3 03-04-2008 06:17
chicklet USB/xbox 360 controller spsteam1512 Control System 1 10-01-2007 23:14
Important note about USB-6009 input voltage limitations jerry w National Instruments LabVIEW and Data Acquisition 7 11-01-2006 13:09
Connect Playstation Controller to PC USB. kirov Control System 1 28-02-2005 08:24
Robot Controller Digital Input crazycliffy Electrical 11 16-02-2003 04:28


All times are GMT -5. The time now is 21:08.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi