LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Possible to change data type of radio button control?

I have a block diagram with multiple controls for a single quantity.  For example, there might be a "raw register" which is a simple 8-bit (U8) number, and then some radio buttons to provide "interpreted" control of each bit in the register.  If one control is changed by the user, then the other control tracks the change, either of which the user might change depending on how they are using the GUI at the moment.

 

However, it seems that a radio button control data type is fixed as "U32".  So I get coercion dots when I try to parse out a bit of the raw U8 register to set the radio button control value.   Certainly it's functional, and not a speed-critical application.  But I've caught a lot of real mistakes because of those dots, so I'd like to make these "false errors" go away.   Of course I could insert a type conversion from the numeric palette, but that seems too 'brute force'.   I'd much rather be able to change the type of the radio button control.   It doesn't seem to be possible, though.  I've checked properties on the entire control, on the individual booleans, and even checked in the control editor in both customize mode and edit mode, but no joy.

 

Have I overlooked something obvious (again!)?

Thanks and Best Regards,

-- J.

Message Edited by JeffBuckles on 11-19-2008 02:19 AM
Message Edited by JeffBuckles on 11-19-2008 02:20 AM
0 Kudos
Message 1 of 3
(2,793 Views)
No. This does not really worth the time, even for the type cast..
0 Kudos
Message 2 of 3
(2,766 Views)

An alternative that you may want to consider is a cluster of Booleans rather than a radio button group. Would be a bit more code, but you'd get rid of that dot. Smiley Wink

 

 

Message Edited by smercurio_fc on 11-19-2008 10:32 AM
0 Kudos
Message 3 of 3
(2,748 Views)