From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring Radio button

Solved!
Go to solution

Hi

 

I am just completely stuck. I am making a calculator using case structure. I found a thread on this forum that had the solution to my issue. But I am unable to replicate it , I cannot find the settings or properties that were changed to make it work like the posted solution.

 

Here is the thread Link a community member named “altenbach” posted the solution and I would love to know , how I can configure the buttons as he has done in his program named RadiobuttonFive.vi that is posted in that thread.

 

Any help is appreciated , in advance thank you

 

I've attached my program.

0 Kudos
Message 1 of 6
(1,086 Views)

Hi Dino,

 

use a RadioButton instead of an Enum control.

Then add buttons to the RadioControl as needed…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 6
(1,063 Views)
Solution
Accepted by Dynamic_Dino

A radiobutton control is a special container for booleans (similar to a cluster, but with built-in logic that only keeps the last selected boolean true). It accept any number and style of booleans and acts like an enum with items corresponding to the boolean labels.

 

Just drop more booleans or remove the ones you don't like (except the last one, see here).

 

 

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

Thank you so much for your answers ! It works and i'm really happy , again thank you both!

0 Kudos
Message 4 of 6
(974 Views)

Hi,

 

Can you link how you did it?

0 Kudos
Message 5 of 6
(260 Views)

Hi Hesse,

 

did you try to follow our answers?

Where are you stuck?

 

  1. Place a radio button on the frontpanel.
  2. Add a new button by dropping it into the radiobutton container.
  3. Delete a button from the radiobutton container.

Which step doesn't work for you?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 6
(258 Views)