Go to Post ...some of our robots could use a proctologist - Scott Ritchie [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 15-05-2014, 21:41
pastelpony's Avatar
pastelpony pastelpony is offline
Programmer/Electrical
AKA: Zach M
FRC #3525 (Nuts and Bolts of Fury)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Waterbury, Connecticut
Posts: 152
pastelpony will become famous soon enough
Can LabVIEW take advantage of controller button pressure sensitivity?

For example, I have a steering wheel and pedal set that is registered as a generic USB controller and works flawlessly in LabVIEW. However, I would like the sensitivity of the press of a button to affect the output of a motor. Is there a way LabVIEW can read pressure sensitivity through a .dll file or such?
Reply With Quote
  #2   Spotlight this post!  
Unread 15-05-2014, 22:13
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 7,011
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Can LabVIEW take advantage of controller button pressure sensitivity?

How does the device report that pressure?

Not directly related: If only position is reported, pressure can be estimated by the rate of position change. So a 'light' press might move it 2 mm/sec, while a 'hard' press might go 15 mm/sec. (Finally! A real use for calculus! :-))
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #3   Spotlight this post!  
Unread 15-05-2014, 23:11
MaxMax161's Avatar
MaxMax161 MaxMax161 is offline
Allegedly Useful
AKA: Max Llewellyn
FRC #2791 (Shaker Robotics), FRC #1676 (Pascack π-oneers)
Team Role: Mentor
 
Join Date: Nov 2009
Rookie Year: 2008
Location: Montvale NJ\Troy NY
Posts: 174
MaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond reputeMaxMax161 has a reputation beyond repute
Re: Can LabVIEW take advantage of controller button pressure sensitivity?

What hardware are you using? If it's reported by the hardware labview should be able to read it as well as any other language.

Quote:
Originally Posted by DonRotolo View Post
How does the device report that pressure?
Not directly related: If only position is reported, pressure can be estimated by the rate of position change.
Don, perhaps I'm just not seeing it. but just given ON/OFF how would you determine the rate a button was pressed? I'm imagining it being off for some arbitrarily long amount of time then being pressed and turning to on for an undetermined amount of time. However, I could see the length of press being used to control something about an action, assuming it was a press and release action not a press and hold action. For example in several video games quickly tapping the jump button vs holding it will result in a different sized jump.
__________________
2791 Shaker Robotics (2013-present)
--Control Systems Mentor 2013-present
--Drive coach 2015-present

1676 The Pascack π-oneers (2010-2013)
--Drive coach 2011-2013
--Lead Programmer 2011-2013
Reply With Quote
  #4   Spotlight this post!  
Unread 16-05-2014, 07:56
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,833
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: Can LabVIEW take advantage of controller button pressure sensitivity?

Quote:
Originally Posted by pastelpony View Post
I would like the sensitivity of the press of a button to affect the output of a motor. Is there a way LabVIEW can read pressure sensitivity through a .dll file or such?
It is the game controller device, not the reading of it in code that generally determines if an input is a button (on/off) or an axis (press sensitivity).
Exceptions like the xbox hat only make some axis behave as on/off buttons, but a button never behaves as an axis.

In general, if code reads the game controller input as an Axis, then the device returns press sensitivity. However, if a game controller input is reported as a button, then it is not press sensitive.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote
  #5   Spotlight this post!  
Unread 16-05-2014, 08:46
pastelpony's Avatar
pastelpony pastelpony is offline
Programmer/Electrical
AKA: Zach M
FRC #3525 (Nuts and Bolts of Fury)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Waterbury, Connecticut
Posts: 152
pastelpony will become famous soon enough
Re: Can LabVIEW take advantage of controller button pressure sensitivity?

Yes, I understand that buttons give only a boolean value. However, I thought this because these controllers have pressure sensitivity (such as speed variation through press strength when applied to a driving simulator) and I wondered if LabVIEW could read this. However, this does not appear to be the case. Thank you very much for your help.
Reply With Quote
  #6   Spotlight this post!  
Unread 16-05-2014, 10:15
MDAWG25's Avatar
MDAWG25 MDAWG25 is offline
FRC Capability Developer LabVIEW
AKA: Matt
FRC #2614 (MARS)
Team Role: Engineer
 
Join Date: Mar 2012
Rookie Year: 2011
Location: Morgantown, WV
Posts: 47
MDAWG25 is on a distinguished road
Re: Can LabVIEW take advantage of controller button pressure sensitivity?

Quote:
Originally Posted by pastelpony View Post
Yes, I understand that buttons give only a boolean value. However, I thought this because these controllers have pressure sensitivity (such as speed variation through press strength when applied to a driving simulator) and I wondered if LabVIEW could read this. However, this does not appear to be the case. Thank you very much for your help.
What is the name of this controller? The WPI Libraries may not be able to read it, however you can send the data from a custom dashboard that is reading the controller values with LabVIEW's default joystick input, or by extending DLLs if you want.

An example of extending DLLs In LabVIEW can be found here:
http://www.chiefdelphi.com/forums/sh...07#post1374207

This shows an example of extending the xinput dll to control the vibration of a connected xbox 360 controller.
__________________
Mountaineer Area RoboticS (MARS) Team 2614



2015-???
2014-Driver
2013-Driver
2012-Driver
2011-Programmer

Last edited by MDAWG25 : 16-05-2014 at 10:21. Reason: Added reference..
Reply With Quote
  #7   Spotlight this post!  
Unread 16-05-2014, 17:19
pastelpony's Avatar
pastelpony pastelpony is offline
Programmer/Electrical
AKA: Zach M
FRC #3525 (Nuts and Bolts of Fury)
Team Role: Programmer
 
Join Date: Feb 2014
Rookie Year: 2013
Location: Waterbury, Connecticut
Posts: 152
pastelpony will become famous soon enough
Re: Can LabVIEW take advantage of controller button pressure sensitivity?

Quote:
Originally Posted by MDAWG25 View Post
What is the name of this controller? The WPI Libraries may not be able to read it, however you can send the data from a custom dashboard that is reading the controller values with LabVIEW's default joystick input, or by extending DLLs if you want.

An example of extending DLLs In LabVIEW can be found here:
http://www.chiefdelphi.com/forums/sh...07#post1374207

This shows an example of extending the xinput dll to control the vibration of a connected xbox 360 controller.
I've used xinput to map vibration onto a Dualshock 3 with LabVIEW through third-party software. I can probably map this controller as well. Thank you. It is an Intec steering wheel and pedal set, pretty generic.
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 20:13.

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