|
Re: Decoupling the image acquisition from the Image Processing
The vision library is not an easy one to look at, but I'll give some more insight into what is going on.
The Open starts up two loops that run independent, one talks directly to the camera HTTP server and sends out notifications to anyone interested in the images. The Get.vi is one of the things that will wait for notification of a new image, and then it follows the path you mention. The second loop that implements the PCVideo server for LV waits for the notification and sends the images directly to the PC via TCP.
You probably don't want to copy the image strings around in globals, and simply sending the image back in the high priority user data won't work since you'll be limited to about 1K of data in a given packet, and the image is typically larger than that.
If you want to do video to the dashboard without processing on the PC, you can just turn off the Video button on the Robot Main and make current value default, or set the global in Begin or elsewhere in the code.
Greg McKaskle
|