LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I attach a sub-vi to a image ?

I want to create a front panel, where every item is a external image (taked with a digital camera for example) then, I want to attach a Sub-vi to these picture...How can I do that ?
0 Kudos
Message 1 of 2
(2,396 Views)
coutto;

I don't understand your question.

Probably what you mean is that you want the front panel to be a picture, and when the user click somewhere on the image, an action (what you are calling a sub-VI) will occur.

You can use a picture indicator to do that. The picture indicator is located in the control palette, Graph->Ctls->Picture.ctl. Use the picture indicator to display your image. In the diagram, right click the pitcure indicator terminal and create a Property Node. One property is Mouse, which include information about the position of the mouse in the picture indicator. Depending on the position, the corresponding commands is executed.

That previous method is complex, but may be what you need if your image changes. If you
r image is always the same, the you can place buttons over the image (Control Palette->Booleans). You can make the button invisible. You won't even need the picture indicator, as you can paste the image in your control panel.

That is if I understood your question right. Let us know if you are asking for something different.

Regards;
Enrique
www.vartortech.com
0 Kudos
Message 2 of 2
(2,396 Views)