LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Running

Is ti possible to execute subVI double clicling on it's icon??I have a VI
tree and many subVI's there.I'd like to execute only one of them double
clicking on it.However,is it possible at all to run VI from it's front panel
without clicking run-button.
For example,I'd like to import picture of my instrument to front panel and
run VI by clicking on that picture..
Any help,please???
0 Kudos
Message 1 of 4
(3,150 Views)
You can import a picture into a Boolean control and use this control to change a CASE which contains the VI you want to run as a SubVI.

I have included an example (in LV 6.0) which shows you how to create the picture control and how to wire the diagram.

I hope this helps you..

Kim
0 Kudos
Message 2 of 4
(3,150 Views)
Hi Kruno,

Once you have the idea - This thing is so Simple. I just Built a Vi in less than 15 Minutes which had in its Vi Hierarchy about 5 VI's.

What I do is Copy the Picture of VI hierarchy using ALT-PRNT SCRN method. I bring it to Picture Editor Crop all details I dont Want. I then Copy the image to Front Panel of a New VI. I make sure the Front Panel Color of VI Hierarchy I copied is Same as this New VI. The Default Color.

Now I overlap all Sub Vi Icons with Picture Controls. One Picture Control Per Icon which I want to run. The Size of the Picture Control is Same as ICON Size. The Picture Control is Colored Transparent. If you want you can even color the border transparent. I Like with Border. Make Sure the Picture Control is the Front Most Object a
nd the Vi Hierarchy Picture is at Back.

Now I code Some Functionality Using Picture Controls Mouse Property. I can even make functionality to do something when Mouse hovers over respective picture Control.

I have Attached a VI I built for you to See. Just Click RUN and Click on Individual VI Icons. LV6.1

I think this method is elegant just by its simplicity and scalability.

Good Luck!!

Mache
Good Luck!

Mache
0 Kudos
Message 3 of 4
(3,150 Views)
You could create a button on your front panel and use it with a case
structure to run a particular sub-VI.

Doug De Clue
ddeclue@bellsouth.net


"Kruno Jurlina" wrote in message news:...
> Is ti possible to execute subVI double clicling on it's icon??I have a VI
> tree and many subVI's there.I'd like to execute only one of them double
> clicking on it.However,is it possible at all to run VI from it's front panel
> without clicking run-button.
> For example,I'd like to import picture of my instrument to front panel and
> run VI by clicking on that picture..
> Any help,please???
0 Kudos
Message 4 of 4
(3,150 Views)