11-28-2007 11:56 AM
11-28-2007 12:11 PM
11-28-2007 12:13 PM
sthu,
I put a button on the front panel, set the Enabled State property to Disabled (or Disabled & grayed - either work fine) and put a Case Structure in the main loop to handle the button press. The Case Structure does not fire because the button state cannot be changed from false to true. If you are using an Event Structure in your loop to handle front panel events, you should look for the Value Change event. If you hooked up a handler for the Mouse Down event, the event will still fire even though the button is disabled.
-cb
11-28-2007 12:13 PM - edited 11-28-2007 12:14 PM
11-28-2007 01:10 PM
11-28-2007 01:19 PM - edited 11-28-2007 01:22 PM
11-28-2007 01:22 PM
It sounds like you are also using the wrong mechanical action for the button. Try Latch When Released.
p.s. Trying to guess what is in your VI is not always the most efficient way to troubleshoot. Posting the actual VI or an example that demonstrates the problem is the fastest way to see why something doesn't work and how it should be changed.
11-28-2007 01:43 PM
11-28-2007 01:47 PM
11-28-2007 01:52 PM