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: 

実行時、システムラジオボタンをイベント発生させずに選択なしに設定したい。

Solved!
Go to solution

Labview 初心者です。

 

プログラム起動時に、システムラジオボタンを、"選択なし"の状態で起動させたいと考えています。

また、ラジオボタンの操作はイベント発生として検知したいと考えています。

 

テスト用に次のように動作するコードを考えました。

 1)プログラム起動後、ユーザの操作を待つ。

 2)ラジオボタンが押されたら、ダイアログボックスを表示。ダイアログのOKが押されたら終了。

 3)停止が押されたら終了、

 

添付ファイル "NG_UI_InitSystemRadioButton" のようにコードを書いてみましたが、

ステート "Initialize_UI" で システムラジオボタンを、"選択なし"に設定する際、イベントが発生してしまいます。

 

 

期待している動作は "OK_UI_InitSystemRadioButton" のようなものです。

          起動時にラジオボタンが選択されている点が希望と異なる。

 

その1) プログラム起動時に、システムラジオボタンを、"選択なし"の状態で起動させる方法はありませんか?

その2)そもそも、このような発想が誤っているのでしょうか?

           まったく異なるアプローチがありましたら、教えてください。

 

良い知恵がありましたら、是非ご享受ください。

0 Kudos
Message 1 of 4
(2,799 Views)
Solution
Accepted by topic author ZetaPeta

I have used Google translate and I hope I have understood your question.

 

Please see attached vi which hides the radio button which is selected at the start, you can reveal this button by moving the bottom border downwards.

 

So instead of 'no selection', there is a button selected but this cannot be seen.

 

When another, non-hidden button is selected, this fires the event.

Message 2 of 4
(2,781 Views)
Solution
Accepted by topic author ZetaPeta

Thank you sebster.

 

This is what I want to do.

I can't notice a this method of put the code at outside of statemachine.

 

And thank you for reply to foregin language.

 

ZetaPeta

 

0 Kudos
Message 3 of 4
(2,743 Views)

Interesting, we can't use the word for a language derived from the most populated country in the world.  But, we can type in all hiragana, katakana, and kanji.

0 Kudos
Message 4 of 4
(2,739 Views)