Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Toggle between two cameras (http://www.chiefdelphi.com/forums/showthread.php?t=101293)

MAldridge 16-07-2012 20:30

Re: Toggle between two cameras
 
Quote:

Originally Posted by Greg McKaskle (Post 1115159)

In the LV dashboard project code, try using the Connectivity>>Input Device functions to open a joystick and read back the buttons. Please note that these VIs aren't quite as flexible as the stuff used for the DS, so once you open a connection, it is not possible to reposition the USB port of the joystick until the DLL leaves memory. This shouldn't be an issue except during development when it causes head-scratching.

Greg McKaskle

I actually tried that back during the competition season when I needed to halt vision output while the robot had the shooter spun up, when I did it, I got a slew of errors. The first of which was the lack of an 'lvinput.dll' (or similar, can't remember what it was beyond that it was accompanied by an error code). At the time, I attributed this to two pieces of software wanting the same hardware, and a slightly foggy mentor (who was recovering from a head injury) agreed. We scrapped it and reworked the dashboard to have a key binding that could toggle vision on and off.

I would say that the easiest would be to get some kind of proxy driver that would let you make two software joysticks out of one software joystick, but that's me. I am firing up labview now, and I will give it a try using this method again.


All times are GMT -5. The time now is 22:32.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi