Chief Delphi

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

Steph342 28-01-2017 13:21

2 cameras
 
I see they have created a tab for an additional camera this year but not sure how we should program it. Any help?

Mark McLeod 28-01-2017 16:10

Re: 2 cameras
 
You just have to duplicate the initial USB 0 camera setup in the default project code Vision Processing.vi for a second camera.
You just need the section that sets up the camera up to the "Camera IP & Dash" You don't need anything in the while loop.

For two USB cameras start the second camera as USB 1, and give it a different name "camera 2" for instance.

One extra point, if you use two USB cameras, then use the controls to start both cameras at their lowest resolution, 10 fps and 50% compression.
Otherwise, the USB driver will choke on the too high bandwidth and just give you a blank screen for the second camera with an error message.
Once both cameras are running at low res you can bring them up to higher res to find the USB bandwidth limit.
This is a different bandwidth limit than the wireless 7Mbps.

Steph342 29-01-2017 11:19

Re: 2 cameras
 
Thanks

billbo911 29-01-2017 12:12

Re: 2 cameras
 
Out of curiosity, suppose we would like to stream video directly from an RPi to the first or second window instead of passing it through the RoboRio. What URL, or other destination, would we send the video to have it populate on the Dashboard or Smart Dashboard video windows?

JeffB 30-01-2017 14:42

Re: 2 cameras
 
To figure out where to send things, take a look at the video processing code in the dashboard example project. You can find what's feeding the image indicator by double-clicking on its border (when the cursor looks like an arrow). This will take you into the portion of your block diagram where the indicator exists and you can see from there where the data comes from.

If you do want to go this route, I'd make sure to read R65 as it outlines what ports you can use for various types of communication. You'd want to make sure your camera adhered to these rules to avoid conflicts later.

billbo911 30-01-2017 15:01

Re: 2 cameras
 
Quote:

Originally Posted by JeffB (Post 1638209)
To figure out where to send things, take a look at the video processing code in the dashboard example project. You can find what's feeding the image indicator by double-clicking on its border (when the cursor looks like an arrow). This will take you into the portion of your block diagram where the indicator exists and you can see from there where the data comes from.

If you do want to go this route, I'd make sure to read R65 as it outlines what ports you can use for various types of communication. You'd want to make sure your camera adhered to these rules to avoid conflicts later.

Bummer, we are not using LabView this year, so we don't have it installed on any of our laptops. Is there a chance someone here can decode this info for us?

Mark McLeod 30-01-2017 15:18

Re: 2 cameras
 
The default dashboard assumes the camera feeds are coming from the roboRIO IP address. The roboRIO would need to forward a video stream to use the default dashboard as is.
It'd be much easier to modify the Dashboard to take a feed from a different IP address.

billbo911 30-01-2017 15:40

Re: 2 cameras
 
Quote:

Originally Posted by Mark McLeod (Post 1638253)
The default dashboard assumes the camera feeds are coming from the roboRIO IP address. The roboRIO would need to forward a video stream to use the default dashboard as is.
It'd be much easier to modify the Dashboard to take a feed from a different IP address.

Excellent, that actually answers the question.
One more item to add to the coder's list! :D


All times are GMT -5. The time now is 04:59.

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