LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Radio buttons all connected to property nodes

Solved!
Go to solution

Hi RHutchings,

 


@RHutchings wrote:

As clear as I can say it, I have 6 textboxes that I would like to have hidden until I need to edit one.


Then why do you provide an example VI WITHOUT any textbox?

 

One possible answer to your requirement:

check.png

(German LabVIEW: "Optionsfelder" = radiobutton, "Sichtbar" = visible)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 11 of 25
(1,642 Views)

Of course it seems silly to only show the selected item, because how are you even going to select something else?

 

Still, this will do what you want (only make the currently selected item visible):

 

altenbach_0-1584378908146.png

 

Of course you can easily change the property node to e.g. the "label visibility" or "boolean text" visibility. Same difference.

 

0 Kudos
Message 12 of 25
(1,629 Views)

This is what I was hoping for. The text boxes are rarely needed in my program and take up a lot of space. Most of the time, I don't want to see any. That will be the next hurdle.

 

 

0 Kudos
Message 13 of 25
(1,625 Views)

This works very well thank you.

0 Kudos
Message 14 of 25
(1,621 Views)

@RHutchings wrote:

This is what I was hoping for. The text boxes are rarely needed in my program and take up a lot of space. Most of the time, I don't want to see any. That will be the next hurdle.

 

 


Put them on a different tab, for example. Just hiding them is not that great, because you still need to keep their "lot of" space reserved for the occasions where they are visible. At least combine them into a cluster, so you can autoindex over their controls[] references based on the radiobutton value. HOw about using only a single textbox and change the contents depending on state?

0 Kudos
Message 15 of 25
(1,620 Views)

No, this one doesn't work at all. It hides the radio buttons. That's not what I want at all.

 

0 Kudos
Message 16 of 25
(1,625 Views)

@RHutchings wrote:

No, this one doesn't work at all. It hides the radio buttons. That's not what I want at all.

 


Of course it "works", it just doesn't do what you want. 😉

 

There were no strings in the attachment of your original posts. If you want help with strings, attach a VI that contains all elements you need help with!

(Did you read my later messages?)

0 Kudos
Message 17 of 25
(1,622 Views)
Solution
Accepted by topic author RHutchings

Here's one possible idea. See if it can give you something to start....

(Note that the cluster order matters, of course, so make sure they match)

 

altenbach_0-1584381511608.png

 

 

0 Kudos
Message 18 of 25
(1,621 Views)

This is doing what I want. Thank you

 

Capture.JPG

Capture2.JPG

0 Kudos
Message 19 of 25
(1,590 Views)

@RHutchings wrote:

This is doing what I want. Thank you

 

 


 It is cleaner to keep the container visible, because the space is wasted anyway. Here's all you need to do:

 

 

altenbach_1-1584391386038.png

 

 

 

 

 

 

0 Kudos
Message 20 of 25
(1,585 Views)