LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I show and hide an image or a decoration on the front panel during execution of the vi?

Hello,

 

I've made a user interface with a little grafic description.

That description should change depending on user actions, e.g. if the user switches a button, some lines should disappear and some other lines should appear.

I thought some decorations could be shown and hidden via something like a property node, but that is not possible. Images can also not be hidden during execution of the program.

Is there any posibility to change a grafic user interface?

 

Johannes

LV 7.1

Greetings Johannes
Using LabVIEW 7.1 and 2009 recently
0 Kudos
Message 1 of 23
(11,742 Views)

You can obtain the references of your decorations via the VI property (drop property node from application control palette and select Class VI) named 'Decorations'. The next issue is to find out which of the decorations is at which index (they have no lables). For the individual elements you can use a property node to make the decorations visible/invisible).

 

Felix 

Message 2 of 23
(11,732 Views)

One way to change the GUI during execution is a tab control. Use a classic style control, color it with the transperant color and hide the tabs. The User will not even know it's there. Smiley Wink

Message 3 of 23
(11,730 Views)

Felix,

thank you for the quick response, but I don't understand.

How can I link a property node to a decoration?

 

What does "select class vi" mean? Do you mean from the menu > Select class > vi server > vi ?

 

What about > Select Class > VI Server > Generic > GObject > Decoration > Decoration?

But then I don'T knwo how to proceed 

Message Edited by johanneshoer on 07-13-2009 08:11 AM
Greetings Johannes
Using LabVIEW 7.1 and 2009 recently
0 Kudos
Message 4 of 23
(11,715 Views)

Here is an example.

But it does not function.

Greetings Johannes
Using LabVIEW 7.1 and 2009 recently
0 Kudos
Message 5 of 23
(11,708 Views)
 
--
Tim Elsey
Certified LabVIEW Architect
Message 6 of 23
(11,700 Views)

@Tim Elsay,

thank you, but I cannot open it. I use LabVIEW 7.1

Greetings Johannes
Using LabVIEW 7.1 and 2009 recently
0 Kudos
Message 7 of 23
(11,694 Views)

here is how you get that property node to work but as mentioned erlyer in this thread you have to find the index to the decoration you want to hide. This code will hide every decoration!

 

Below is also the solution I mentioned utilizing tabs. Design each tab the way you want it and use similar code to switch between them.  show and hide.png

0 Kudos
Message 8 of 23
(11,688 Views)
untitled.PNG
--
Tim Elsey
Certified LabVIEW Architect
0 Kudos
Message 9 of 23
(11,687 Views)

Thanks to Tim for drawing what I suggested as option while I had some real work to do.

 

There is a trick of overcoming the index problem that was presented/devloped in the forum in the last month's: 

You can place the decoration inside a cluster, so you can use the lable of the cluster to adress the decoration you want. The data type of the cluster doesn't mather for this, so you will hide the control/indicator. And you colour the cluster transparent (hint: right click with the coloring tool and use space to toggle). 

 

Felix 

0 Kudos
Message 10 of 23
(11,669 Views)