Bobillier Posted September 22, 2023 Report Share Posted September 22, 2023 Hi I try to develop one UI with a selector button to choose between different buttons. For that, I use one radio button in event structure but the result (choix) is not that expected. It's always the previous value of radio button and not the clicked button.(see my VI (LV2018)) I can't use value change event because in this case if I clicked on one button allready select, there is no change and no event.And I need to know clicked element. Eric Bug radio Button.vi Quote Link to comment
Bobillier Posted September 22, 2023 Author Report Share Posted September 22, 2023 Finally, I have found a work around solution. I have combine Clicked event with a "Value"(signalisation) property, and a value change event, and it's solved. Perhapse need I send CAR ? Bug radio Button.vi Quote Link to comment
ensegre Posted September 22, 2023 Report Share Posted September 22, 2023 (edited) you can do without the Mouse Down event at all, and just use the New Val connector of the Value Change event Bug radio Button-1.vi Edited September 22, 2023 by ensegre attachment backsaved for 2018 Quote Link to comment
Bobillier Posted September 22, 2023 Author Report Share Posted September 22, 2023 Thank Ensegre, but your solution don't work correctly if you click on one button allready select. Like i have said before, value Change event isn't fire in this case because value isn't changed. Quote Link to comment
Bobillier Posted September 22, 2023 Author Report Share Posted September 22, 2023 Finally my best solution is base on Ensegre solution, but to solve the previous issue, I have: 1) Define list radio Button with "Authorize no selection" option (right click on radio button border to show this option. 2) Replace click event by value change event. 3) Force to "no selection" at start. 4) Force to " no selection" just after value change for future "Value Change " detection Bug radio Button V2.vi Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.