|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Re: Toggle between two cameras
I've just wired the value of the joystick being unflattened to the value Vision, which created an orange wire. Will this work for me?
|
|
#2
|
||||
|
||||
|
Re: Toggle between two cameras
Quote:
Hope this helps! |
|
#3
|
|||
|
|||
|
Re: Toggle between two cameras
Ah, NOW I get it! Thanks Alan, Greg and NeatNit!
|
|
#4
|
|||
|
|||
|
Re: Toggle between two cameras
I have never tried to open a joystick connection in multiple apps using DirectInput, which is what the DS uses.
I'm leaving town in an hour, so I'll describe it and I look forward to hearing the results. 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 |
|
#5
|
||||
|
||||
|
Re: Toggle between two cameras
Hey i found this intresting i just programmed a second camera in and got it within the tabs, Dominick, can you please show me how you programmed in the toggle between the two cameras. With pictures please :/ help please and THANK YOU. Pm me if you can
Last edited by 4085 : 15-06-2012 at 17:30. |
|
#6
|
|||
|
|||
|
Re: Toggle between two cameras
I'm going to run with the assumption that you've got a second camera running in an additional "Camera" tab.
First, you'll need to pass a boolean from a joystick or some other input to the DS. This is done via "High Priority User Data". Then, on the block diagram, right click on each of your "Viewer" icons, then navigate to Create>>Property Node>>Value. You'll have to change each of these property nodes to write by right clicking on them. Take the boolean you received and create a case structure. In the true case, wire the "Camera Image" enum to the first viewer property node. In the false case, wire the remaining enum to the second viewer property node. |
|
#7
|
||||
|
||||
|
Re: Toggle between two cameras
Thanks for your help!
![]() |
|
#8
|
||||
|
||||
|
Re: Toggle between two cameras
Quote:
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. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|