From: d.w.b on
> do away with the event structure and go entirely with windows messages.
> This could be done by defining some custom messages that replace the labview events (e.g., WM_STOPBUTTON_PRESSED = stop button, value changed event)
> and have the VI post these messages using PostMessage from User32.DLL and then catch these messages in the same manner as the NI Windows Messaging Queue VI.
For some LabVIEW support of standard and custom windows messages (e.g. WM_USER) in a while loop, see Windows Message Queue Library <a href="http://zone.ni.com/devzone/cda/epd/p/id/4394" target="_blank">http://zone.ni.com/devzone/cda/epd/p/id/4394</a>