|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
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?
|
|
#2
|
|||||
|
|||||
|
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! :-)) |
|
#3
|
|||||
|
|||||
|
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.
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. |
|
#4
|
|||||
|
|||||
|
Re: Can LabVIEW take advantage of controller button pressure sensitivity?
Quote:
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. |
|
#5
|
||||
|
||||
|
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.
|
|
#6
|
||||
|
||||
|
Re: Can LabVIEW take advantage of controller button pressure sensitivity?
Quote:
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. Last edited by MDAWG25 : 16-05-2014 at 10:21. Reason: Added reference.. |
|
#7
|
||||
|
||||
|
Re: Can LabVIEW take advantage of controller button pressure sensitivity?
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|