05-19-2021 02:05 PM
Sometimes events have very quick code that will take ages under execution highlighting.
If the event is set to lock the panel (default) and execution highlighting is enabled, the diagram is completely locked while the event executes!
I understand the the front panel will be locked, but why the diagram????
05-20-2021 01:05 PM
Thanks for the feedback! I agree that we shouldn't be locking diagram editing operations like this. I've created Bug 1467984.
05-21-2021 12:03 PM
Thanks, Christina. It probably took me way over 10 years to final put 2+2 together and realize that the inability to interact with the debugging tools is related to the event lock settings. Always thought that things are just generally busy and a bit slow.
I rarely lock the panel anymore so I don't see it much with my own code. (Here's a great VI analyzer test!)
Just recently I bumped into it again with some forum code and finally (!!) realized that it had to do with the events. 😮
(So the question still remains why most events lock by default and if this is reasonable or not.)
06-24-2021 03:09 PM - edited 06-24-2021 03:09 PM
@altenbach wrote:
(So the question still remains why most events lock by default and if this is reasonable or not.)
Because many peoples code is written badly that an event frame takes noticeable time. Thus the user doesn't see a response and then clicks the button several times in frustration leading to bad results. I think it is a case of having the seating as sort of a seat belt for bad coding. At least that is all I can figure.