LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event structures, radio buttons, and the disable property node

Solved!
Go to solution

Hi,

 

I have a very simple VI meant to simulate what i'm trying to accomplish in my program... basically, when the 3rd radio button is selected, I want the text box to be disabled and grayed out.  Instead, the event case seems to perform the action on the *next* iteration of the loop.  Can someone point out what i'm doing wrong?


Thanks!

0 Kudos
Message 1 of 2
(2,560 Views)
Solution
Accepted by topic author tschlich

The terminal of the radio control belongs inside the respective event case.

(...or you can read the new value from the [NewVal] event data node instead if you need the terminal elsewhere).

 

Currently it gets read immediately and the value placed in the tunnel. When the event fires, the stale value is read from the tunnel.

Once you place the terminal inside the event case, it will only get read after the value has changed and you get the current value.

 

Also:

  • You also need an event for the stop button, else the VI cannot be stopped easily.
  • You have the same property node in all cases of the case structure. Place it after the case structure and you only need one.
  • Only things that differ belong inside the case structure.
  • You can combine the cases that are the same (make it the default)
  • You can delete the timeout case.
0 Kudos
Message 2 of 2
(2,551 Views)