Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Logitech Game Controller for use in Labview with Possible disconnects (http://www.chiefdelphi.com/forums/showthread.php?t=99597)

dashivachase 09-01-2012 11:18

Logitech Game Controller for use in Labview with Possible disconnects
 
Hello all, I would like to see if there are any suggestions on the following issue. In effect I am using a Logitech game controller to manipulate large scale robots. During operation with these robots I need to plan for the inevitable "accidental" disconnection of the game controller from the computer running labview while it is under operation. Simple to say I can throw the system into standby upon the "ERROR" messages I get, but I want to programmatically be able to "reset" the controller (ie wait for it to be plugged back in) and have the program continue working. However with my work and research thus far that isn't the case. I end up with the same error (even when reconnected, attempted re-initialize, closing the connection, with time delays, and re-initailizing after closing all connections). Nothing seems to work other than closing the program and restarting it (which for the consumer this would be quite frustrating). Suggestions?

Also on a similar note if anyone has any ideas on how to scan for devices prior to using them would be helpful too.

I currently am running Labview 2009 in windows 7. I do realize windows has its unique way of dealing with plug and play devices, and suspect that I may have to play with these features, but I don't know this topic very well.

Thank you all in advance!

Greg McKaskle 09-01-2012 12:14

Re: Logitech Game Controller for use in Labview with Possible disconnects
 
I updated the LV input dll for dealing with joysticks to allow it to do what you describe. But since this isn't really related to the FRC robotics, perhaps you should contact my NI email address of greg.mckaskle at the domain of ni.com.

Greg McKaskle

andreboos 09-01-2012 12:34

Re: Logitech Game Controller for use in Labview with Possible disconnects
 
Quote:

Originally Posted by Greg McKaskle (Post 1100583)
I updated the LV input dll for dealing with joysticks to allow it to do what you describe.

Will this update be provided to FIRST teams? I'd appreciate being able to reconnect a controller without restarting the driver station software.

Mark McLeod 09-01-2012 13:16

Re: Logitech Game Controller for use in Labview with Possible disconnects
 
Hit the F1 key after reconnecting your controller.

Greg McKaskle 09-01-2012 14:34

Re: Logitech Game Controller for use in Labview with Possible disconnects
 
The DS looks for joysticks every second or two as long as the robot is not enabled. Once the robot is enabled, you need to big F1 if you would like it to redo the enumeration anyway.

Greg McKaskle


All times are GMT -5. The time now is 23:34.

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