![]() |
Saving images to global variables
We are trying to detect the baskets using vision proccessing, but in order to not slow the code by always running the vision proccessing, we want to use a script that uses only two images. The script works great in the vision assistant, but in order to run the script in labview we have to find a way to save two different images into two different global variables (When we press one button we want to save the first image, and when we press another button we want to save the second image), so we can set them as the input for our script VI, which will run in the Teleop VI only when required.
So far we haven't been able to successfully save the two images into two global variables, and we would really appreciate any help there. |
Re: Saving images to global variables
Please, we really need help, does anybody know how to do that?
|
Re: Saving images to global variables
OK. I'm not so sure that this vision method is likely to work, but I'll explain what to do to hold onto two images.
The IMAQ palette has a subVI called IMAQ Copy. It will store the pixel contents of an image into another image allocation so that you can use it later. So be sure to allocate each image with a unique name, don't just branch the wire. As for using globals, you can store the IMAQ refnums in the globals, or you can access them by name using the IMAQ functions. Greg McKaskle |
| All times are GMT -5. The time now is 11:37. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi