LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Property Node: Visibility for indicators in a case structure

Solved!
Go to solution

Hello,

 

I'm having trouble understanding the concept for the property nodes for visibility...for my application I would like to have my indicators

appear only when a case is true. For example, if my program reads 4 active traces on the machine I am using, it will only "populate" or

show the indicators that have active channels tied to it while having the unused channels be hidden or possibly grayed out. As long as

it does not push a string to the unused indicators.

 

At the moment, I have my machine setup for 5 ACTIVE math functions and I would like the front panel to only populate 5 active

indicators. I have an index wire running to my case statement and will push a string to the first 5 indicators but leave the other 3 blank.

Each of my cases (from 0 to 😎 have a one less visibility property node per inactive channel. How should I proceed?

 

 

Block Diagram for visiblityBlock Diagram for visiblityFront Panel AppearanceFront Panel Appearance

0 Kudos
Message 1 of 6
(3,384 Views)

First, it is always incredibly helpful when a VI is posted along with a post. It makes it easier understand what you are trying to implement.

 

Second, it looks like you have several explicitly linked property nodes that don't have any references wired to them. So I'm guessing your VI has broken run arrow. You can make it work with either type of property node (explicitly or implicitly linked).

 

From what I understand of your question, I would recommend creating property nodes for each 'Math' string indicator and have these property nodes outside of the case structure. And then wire the True/False constants from within the case structure to each property node. This way, you can hide and show specific 'Math' indicators depending on the case selected.

 

If you share your VI, I'd be more than happy to show you.

 

EDIT:

Check out this quick example I made. It's not perfect, but hopefully it will be helpful.

block diagramblock diagram

dK
0 Kudos
Message 2 of 6
(3,372 Views)

Here is the VI. I am a bit confused on where to wire the reference pin for this application.

0 Kudos
Message 3 of 6
(3,364 Views)

@bvw5217 wrote:

Here is the VI. I am a bit confused on where to wire the reference pin for this application.


sirknoxalot was mistaken about needing references (probably confused by the fact that labels aren't showing on your property nodes).  He gave a good example, follow that.  I noticed that in your VI, you never set the "Visible" property to False (which you would have to do in order to hide a control).

"If you weren't supposed to push it, it wouldn't be a button."
0 Kudos
Message 4 of 6
(3,333 Views)
Solution
Accepted by bvw5217

I implemented what I posted previously into your VI using implicitly linked property nodes (so no references are needed). If you want a control/indicator to be hidden, you need to wire a FALSE to the 'Visible' property node. And to show a control/indicator, wire a TRUE.

 

I wasn't able to fully test it in your VI since I was missing some subVIs, but give it a try.

example.png

dK
0 Kudos
Message 5 of 6
(3,329 Views)

image.png
image.png

Got it to work flawlessly...thanks so much for your help! I wasn't to sure how the property nodes work but it seems really straight forward now.

0 Kudos
Message 6 of 6
(3,309 Views)