01-18-2013 04:50 PM
I'm using the Query Input Devices VI to check if a joystick is plugged in before my program can start.
If the joystick is NOT plugged in and I run the VI it DOES NOT find it (as expected). If I then plug the joystick in and re run the VI, it DOES NOT find the joystick (not as expected).
The only way it will find the joystick is if I close the VI and then re load it and run it again. I click close, return to splash screen and open the attached VI again.
So basically, after the first run of this VI, it will not refresh to show what devices are connected to the computer unless I close and repon the VI. The VI is calling a DLL so I guess the problem is in there and there is not much I can do about it?
Any Ideas?
01-21-2013 05:26 AM
Hi Lewis,
I've checked this behaviour on my computer (with mouse and keyboard) and can confirm that I am seeing the same as you.
The DLL is one that is made by NI and it seems that the returned data is stored locally (either in the VI's or LabVIEW's memory) on the first run and is simply loaded from this location on subsequent runs, of course until you restart the VI.
If this is an issue for you, I would suggest having a look on MSDN for HID (Human Interface Device) related DLLs and see if there are any of these that you can use to detect the number of joysticks. Failing that it may be worth checking gaming and game design forums to find user made DLLs with the ability to find the number of joysticks.
Let me know if you have any further questions.
Best regards,
03-27-2014 09:24 PM
Hi -
I am having the same problem. Is this going to be fixed/patched in the near future??
I need to have the same code work in Win8 and Linux....
Bill Troyer
03-28-2014 02:03 PM
I don't think Eden works at NI anymore. If you need an answer to this I would suggest getting in touch with NI