03-26-2010 02:55 AM
Hello, Honoured Engineers!
I have a problem with this code in LabView 8.6.1 and 2009. I don't understand why an application hangs when I press a button.
All versions of LabView are registered and activated. And I know that in base versions there are problems with Event Structure so I've activated with Professional licenses.
(on the picture False case and Timeout case are empty)
Solved! Go to Solution.
03-26-2010 03:04 AM - edited 03-26-2010 03:05 AM
03-26-2010 03:06 AM
Your button's mech action is 'switch until release'... change this and it won't hang.
Jevon
03-26-2010 03:37 AM
Sorry I did not catch your problem. Shall never answer a posting before having a (large) cup of coffee first. And you are correct the control is locked up. I did a test with other types of mechanical action, and can see the same problem. So yes it is a bug
03-26-2010 03:45 AM
03-26-2010 03:49 AM
Hello, Jevon!
It doesn't hang when I change for-cycle with a constant array or when delete Event handler for a button.
03-26-2010 03:52 AM
03-26-2010 04:03 AM
03-26-2010 04:12 AM
You should avoid using the event structure the way you have it here in the case statement. The event structure is associated with the control and locks the front panel (when the button is pressed) until the event structure has handled the event. I recommended changing the architecture.
Jevon
03-26-2010 04:38 AM