Go to Post Magic Smoke. One whiff and you never forget. - JohnBoucher [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

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 22-01-2011, 09:36
btgdaniel's Avatar
btgdaniel btgdaniel is offline
Registered User
FRC #1731 (Fresta Valley Robotics)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Warrenton, VA
Posts: 20
btgdaniel is an unknown quantity at this point
Exernal USB keyboard as input device??

How do you use an external USB keyboard instead of a second joystick, as an input device in LabView?
__________________
Team 1731
Fresta Valley Robotics

Catch the FeVeR ~ If You Can!
Reply With Quote
  #2   Spotlight this post!  
Unread 22-01-2011, 10:02
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
Re: Exernal USB keyboard as input device??

I haven't done it, so I don't know if it would work.

However, here's something to try. Create a new empty robot project in LabVIEW. Delete the drive code in Teleop but keep the Joystick VIs. There should be a raw output on the Joystick Get VI, right-click that and create an indicator. Plug your keyboard into your DS on USB1, then switch to the Robot Main VI and click the run arrow. After it deploys, go back to the Teleop VI's front panel. Mash the keyboard and observe results.

If you get nothing, then I'd suggest waiting for someone more knowledgable in this area to post or do some more research on your own.
__________________
Twitter Profile
Reply With Quote
  #3   Spotlight this post!  
Unread 22-01-2011, 10:07
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,713
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Exernal USB keyboard as input device??

If you are talking about sending commands to the cRIO...
We're limited by the Driver Station application.

It only looks for and recognizes standard HID joysticks/game controllers and the Cypress I/O board.
(That Stop button too)
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 22-01-2011 at 11:00.
Reply With Quote
  #4   Spotlight this post!  
Unread 22-01-2011, 10:44
btgdaniel's Avatar
btgdaniel btgdaniel is offline
Registered User
FRC #1731 (Fresta Valley Robotics)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Warrenton, VA
Posts: 20
btgdaniel is an unknown quantity at this point
Re: Exernal USB keyboard as input device??

Thank you for the help!

Yes, I am talking about using the keyboard to send commands - is that not possible? Is modifying the Driver Station app not permitted?
__________________
Team 1731
Fresta Valley Robotics

Catch the FeVeR ~ If You Can!
Reply With Quote
  #5   Spotlight this post!  
Unread 22-01-2011, 10:51
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,713
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Exernal USB keyboard as input device??

No, we aren't allowed to modify the Driver Station application.
It's the one required piece of the user controls this year.

There are some devices that masquerade as game controllers, but keyboards can't do that.
I think if you can see it in the standard Windows Game Controller utility then the Driver Station will recognize it.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle

Last edited by Mark McLeod : 22-01-2011 at 10:54.
Reply With Quote
  #6   Spotlight this post!  
Unread 22-01-2011, 10:52
btgdaniel's Avatar
btgdaniel btgdaniel is offline
Registered User
FRC #1731 (Fresta Valley Robotics)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Warrenton, VA
Posts: 20
btgdaniel is an unknown quantity at this point
Re: Exernal USB keyboard as input device??

Okay, thanks Mark!
__________________
Team 1731
Fresta Valley Robotics

Catch the FeVeR ~ If You Can!
Reply With Quote
  #7   Spotlight this post!  
Unread 22-01-2011, 11:14
EricVanWyk EricVanWyk is offline
Registered User
no team
 
Join Date: Jan 2007
Rookie Year: 2000
Location: Boston
Posts: 1,597
EricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond reputeEricVanWyk has a reputation beyond repute
Send a message via AIM to EricVanWyk
Re: Exernal USB keyboard as input device??

Quote:
Originally Posted by Mark McLeod View Post
No, we aren't allowed to modify the Driver Station application.
It's the one required piece of the user controls this year.

There are some devices that masquerade as game controllers, but keyboards can't do that.
I think if you can see it in the standard Windows Game Controller utility then the Driver Station will recognize it.
For 99% of the teams, this is true. For the uber-advanced 1% of the teams, it might be possible, but it almost certainly isn't worth the effort.

You are not allowed to modify the Driver Station application, as Mark said. However, you ARE allowed to modify the dashboard. In fact, you are allowed to scrap the default dashboard entirely and start from scratch. If you can convince the dashboard to take keyboard input and pipe it to the robot, I believe it is legal - but check the rules carefully.

Personally, I wouldn't bother - it just isn't worth the time and effort.
Reply With Quote
  #8   Spotlight this post!  
Unread 31-01-2011, 21:19
MCeGEAR MCeGEAR is offline
Registered User
FRC #1243
 
Join Date: Jan 2010
Location: US
Posts: 12
MCeGEAR is an unknown quantity at this point
Re: Exernal USB keyboard as input device??

Well, i am not sure if this is game legal or not but if you use a combination of two programs, PPjoys and Glovepie. You can create a fake joystick recognizable by the driverstation with input from any device including a keyboard or even a wiimote tho the wiimote would definitely be illegal.
Reply With Quote
Reply


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


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

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