LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

controlling front panel display by a boolean variable

I am trying to control the display of several controls on the front panel by a boolean variable. If the the boolean variable is true, then some controls will be displayed. Otherwise, some others will be displayed. Is this possible in LabVIEW?
--
Forrest Sheng Bao, Ph.D.
Assistant Professor, Dept. of Electrical & Computer Engineering
University of Akron, Akron, OH, USA
https://sites.google.com/site/forrestbao/
0 Kudos
Message 1 of 8
(3,439 Views)

Yeah, thats possible...you have to create a property node for your control (right click the terminal, select create-->property node). There, you can select "Visible". Wire your boolean control to this property to control the visibility...

 

Greetings

 

Christian


THINK G!! 😉
------------------------------------------------------------------------------------------------
Using LabView 2010 and 2011 on Mac and Win
Programming in Microsoft Visual C++ (Win), XCode (Mac)
Message 2 of 8
(3,437 Views)
Also you can use a "Tab" control.
Message 3 of 8
(3,435 Views)

Yes, you can do this in LabVIEW, by creating a property node (right click on the control => create => property node => visible) for all the controls you want to display or hide.

Attached you can find two simple examples showing how to do so for one or more controls.

I hope this can solve your answer!

Regards

 

Licia

National Instruments
Applications Engineer

Download All
Message 4 of 8
(3,430 Views)

To Lucia, sorry. I am using LabVIEW 8.2. So, I can't open your examples. Is it possible for you to save it into a formt compatible to 8.2?

To Christian, I tried to right click on the control and select "create => property node => visible". Then I found when I moved my mouse to the block diagram, there was a VI moving with my mouse. So I left clicked. The new VI, the property node, has one output, error input and error output. How can I wire the boolean variable to the property node? As attached, it's my program.

To pnt, can you show me the link to the help doc about Tab controls? 

--
Forrest Sheng Bao, Ph.D.
Assistant Professor, Dept. of Electrical & Computer Engineering
University of Akron, Akron, OH, USA
https://sites.google.com/site/forrestbao/
0 Kudos
Message 5 of 8
(3,423 Views)

I'm sorry, here are the examples for LV 8.2.

You have to right click the property node and select "change to write", so you can connect the boolean in input to the property node.

Regards.

Licia

Download All
Message 6 of 8
(3,413 Views)
Ok, I have got it. Can you tell me which part of "LabVIEW Fundamentals" or "Getting Started with LabVIEW" talks about this? I plan to read it more carefully.
--
Forrest Sheng Bao, Ph.D.
Assistant Professor, Dept. of Electrical & Computer Engineering
University of Akron, Akron, OH, USA
https://sites.google.com/site/forrestbao/
0 Kudos
Message 7 of 8
(3,411 Views)

Hi Forest,

 

Neither "LabVIEW Fundamentals" nor "Getting Started with LabVIEW" mention property nodes because they are more of an advanced topic.  Thus, please consult the following resources:

 

Property Node - LabVIEW 8.2 Help

Control References - Overview (contains more information than just property nodes)

 

Lastly, open the LabVIEW Example Finder and browse by task.  Expand Building User Interfaces » Controlling Front Panel Objects Programmatically and double-click Property Nodes.vi. This VI is very well documented and includes helpful real-world property node usage.  Please let me know if you have any other questions.  Goodnight!

Message 8 of 8
(3,369 Views)