11-03-2006 06:54 PM
11-04-2006 07:47 AM
I cannot test it now since I have no CVI available here, but I can think to a structure like this.
In your main thread you can place GetUserEvent ( ) function where you want to block: you must be careful that no commit events can be fired in this condition since GetUserEvent returns only when a commit or user-defined event is fired (for example you can put all active controls in NORMAL mode instead of HOT so that no commit events are fired).
Your secondary thread can process you communication and place a PostDeferredCall to the main thread: the deferred callback can fire a user-defined event so that GetUserEvent returns and your program can proceed.