06-13-2014 07:17 AM
Please find the attached VI, I was trying to update and inlcude feature to a previously released code. And it ends up in a non-responsive event structure.
Is it a bug (related to setting 'Windows run transparently' property) or am I missing something...??
Solved! Go to Solution.
06-13-2014 08:34 AM
First, don't have two event structures on the same block diagram -- the second one isn't needed.
Second, for the key down event to work, the front panel can't be transparent.
Third, what is the timeout event for?
Mike...
06-13-2014 08:58 AM
06-13-2014 09:17 AM
You have your events set to lock the front panel until complete. If you have a keydown event, the 2nd event structure captures it as well and locks the front panel. You might think you have a timeout, but that loop doesn't get the timeout value until the first while loop completes. Your second loop is dependent on the completion of the first loop.
If you don't hit the combination just right with a keydown event (or mouse leave or mouse enter and the other events that would lock the front panel) that also causes that first while loop to stop. You've locked up your program.
As Mike said, don't have 2 event structures on a block diagram when you don't understand how event structures work.
I'd recommend reading Caveats and Recommendations when Using Events in LabVIEW. That document has a few more items that I think it should mention. But it is a good start.