12-13-2012 11:36 AM
Hi there,
I need to make zoom in and zoom out in an acquired image that I show in my Vision Builder AI-Inspection, but the problem is that there is no control button in my graphical user interface that can allow me to do that. I know that it is possible to have this type of controls in a GUI, because there is some examples in the "built in inspection interface", that do that, (but I'm not allowed to access to this built in inspection interface, to see How it works!)
Can anyone help me?
** I attached a picture for you guys realize what I really need.
Regards
Solved! Go to Solution.
12-18-2012 04:56 AM
Ricardo,
what version of VBAI are you using?
Christian
12-18-2012 05:14 AM
Hello
I'm not sure, about if the problem come from the version of my VB.
but here it goes: Version is 2009 SP1
12-18-2012 06:03 AM
12-18-2012 06:07 AM
Hi,
Is you GUI a "Custom Inspection Interface" or the normal "Inspection Interface"?
Because if you use a custom interface, you have different way of doing it.
Either you use the ROI Tool bar of your image control in which you find a zoom tool.
Either you place two buttons on your GUI that controls property node of your image. (ZoomInteger or ZoomSingle property node)
Now I do not have VBAI2009 installed anymore, but if you use the normal inspection interface, you should be able to zoom in and out.
Hope this helps
Regards
12-18-2012 06:36 AM
Hi
I have already tried what you are saying (create a zoom tool) in my interface with labVIEW, but didn't work because VB doesn't accept subVI, and zoom tool is one.
thanks
12-18-2012 06:45 AM
Hi Christian
In page 21, the inspection is a built-in inspection interface which already has the zoom controls.
If you try to create a new Inspection interface, the controls doesn't appear
thks
12-18-2012 06:50 AM
You defenitely have two options:
1. Use the standard configuration interface, which natively provide zoom tools.
2. As toto said, create a custom interface using the IMAQ Image display, which also provides zoom tools.
Christian
12-18-2012 07:25 AM
Christian, if I use the standard configuration, I'm restricted, because I will need other functionalities in my configuration inspection.
In other hand if I use buttons from labVIEW, to control the zoom, as I said to toto, I will get an error because I can´t use subVI in VB.
12-18-2012 08:46 AM
As I said before, when creating a custom inspection interface, the IMAQ Image display includes zoom tools:
Christian