Log in

View Full Version : Rumble and LabView


Clayton Yocom
29-07-2011, 15:23
Has anyone tried/succeeded in making LabView control the rumble function of modern joypads? If so, can you share any tips/code snippits? I'm working on some off-season projects where it'd be really cool to have the accelerometer interface with the rumble (for impacts and what-not, and in the future more information).

Thanks!

mocibot
15-08-2011, 13:46
I'd never thought of doing this, I'm not sure how it would work. But if I find some time I think I'll look into this... I'll edit this latter with any information I come up with
http://www.chiefdelphi.com/forums/showthread.php?t=73099

plnyyanks
15-08-2011, 14:12
This problem has been brought up a few times before. People have asked about doing it in C++/Java, and the short answer has been "no." Check out this thread (http://www.chiefdelphi.com/forums/showthread.php?p=1047134) for some ideas (it seems you can do it by calling a directX (http://en.wikipedia.org/wiki/DirectX)or xinput (http://en.wikipedia.org/wiki/DirectInput#XInput) library to control the rumble yourself (read this thread (http://www.chiefdelphi.com/forums/showthread.php?p=916453))). There's also probably some information on the topic on NI's Forums (http://www.google.com/search?q=site:forums.ni.com+xbox+controller+rumble ) about the topic. I'm not entirely sure how to do that in LabVIEW, though (I suggest you do a little research, starting here (http://www.google.com/search?q=+site:forums.ni.com+labview+directx)). If you get anywhere, let me know, it might be cool to play with this sometime.

jhersh
17-08-2011, 00:32
Here's the XBox controller rumble library I wrote back in 2007. Perhaps it will work for you. I just tested it tonight and it worked for me. It's pretty limited, but as long as you just want simple rumble, it's fine.

Best of luck,
-Joe