LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

radio button with number

Hi all!

 

I’ve seen a lot of discussions concerning this topic, but no one fits my problem.

 

I want to set a radio button control with two options, and a numeric value associated to one of them (offering the user the possibility to select a global attenuation, which is the numeric value, or made use of a calibration file) for the 4 instruments used in the measurements. (see example and image attached)

 

I’ve tried to edit the control, but it gives me an error as soon as I place the numeric control. If I add it directly in the front panel, an undesirable shadow appears…

 

Any idea?

Mensaje editado por Gatet

Download All
0 Kudos
Message 1 of 7
(3,504 Views)

would using events for each radio button and make that numeric control visible/invisible as shown in this VI help??

I am not sure if X controls can be used to realise this kind of an application.

0 Kudos
Message 2 of 7
(3,486 Views)
0 Kudos
Message 3 of 7
(3,486 Views)

Hi Gatet,

you can't insert a numeric control into a radio button, because this changes the type of control and consequently giving you the error.

 If I add it directly in the front panel, an undesirable shadow appears

 

I was facing this same problem recently and got an answer here:

http://forums.lavag.org/index.php?showtopic=2883

Besides ignoring the issue (the shadow disapperas dring execution) probably the easiest solution is grouping the controls.

 

Good luck,

Guenther

 

Message 4 of 7
(3,484 Views)

Hi devchander,

I'm using LabVIEW 7.1, so I can't open your example (requires 8.0). Could you please store it for this older version?

Thanks!

0 Kudos
Message 5 of 7
(3,476 Views)
In LabVIEW 7.1

Message Edited by devchander on 07-31-2006 06:25 AM

0 Kudos
Message 6 of 7
(3,471 Views)
Hi again devchander,
 
this solution looks nice, but i rather prefer to leave the numeric value, so the user can easily compare it. Furthermore, I try so far as possible to avoid event structures!
 
Thanks anyway for your time, also to all others. With your help I got what I was looking for,which looks as the example attached.
 
Cheers!
0 Kudos
Message 7 of 7
(3,463 Views)