OK, so apparently you need to force the users to turn off the currently TRUE button before allowing him to turn on a different button. There could be reasons for that, so let's have a look at your code example:
- The way you are building the array of references is pure Rube Goldberg. All you need are the four references and a "built array". (see picture)
- The array of references never changes, so it does not need to go into a shift register
- You don't need the timeout event
- You need an event for the stop button
- No need to set anything false using references. The current switch just turned false and the others are already false.
- Setting the enabled property is the same in both cases, so you can combine that.
- Using search and delete from array to temporarily create a sub-array with one element missing seems like pumping a lot of hot air. Just use a switch.
I took the liberty to modify your VI a little bit to show what I mean. Modify as needed.
(Another option would be to turn this entire thing into an Xcontrol.)
Rube Goldberg array of references
Nonstandard Radio Button Code