I have an application that runs one of many VI's in a sub-panel on a main GUI screen. The main GUI has several string controls that can be typed into at any time, and the keyboard focus is taken away whenever "Run VI" is called on a vi in the sub-panel.
Attached are a couple of vi's demonstrating my problem. run "top.vi" and notice how typing into the string controls is interrupted when the sub-panel reloads. [Preview doesn't show the focus.zip file that I entered into Attachment, so I don't know if this will work....]
Thanks.... but in the actual application I am launching one of many VI's in the sub-panel, and I doubt it would be a good idea to keep all of them running in the background at the same time. Any other explanation for what is going on here?
Thanks for your response, Scott. That seems like a possible workaround. The problem with that technique is:
* the actual application has several independent sub-panels, any one of which might be involved with an entry from the user. It would be very klumsy to notify them all of each other's UI controls so that focus can be preserved.
* barcode scanners are used which type much faster than I can, so the momentary loss of focus, before the subvi puts it back, will cause loss of characters.
Apparently there isn't a real solution to this problem?! I was hoping that there were properties of a VI that would affect this behavior, but I have been experimenting all day with no success.