Hi,
How about pressing "Run Continuously". It's not more sophisticated, but the
program will keep running!
Your comparation is not entirely fair. In VC++ there *is* a loop
around the message handler, otherwise it would be executed only once! It is
only less obvious.
Your statement about "continually polling for events" is simply not true.
The events are not more or less polled then in a C++ program. By making an
event structure, LabVIEW knows to jump to that peace of code when a windows
message is send. It is exactly (e.g. as close as you can get) like doing:
LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg,WPARAM wParam, LPARAM
lParam)
{
switch (uMsg)
{
case WM_MOUSEDOWN:
{
execute_mous
e_down_event_structure_content
return 0;
}
The event structure is not continuously polling!
If you want to make subvi's with events in them, that is possible, but only
in LV7. This is actually beneficial, because the subvi's can be reused (even
within the same program).
Regards,
Wiebe.
"Recce" wrote in message
news:5065000000080000004FD00000-1079395200000@exchange.ni.com...
> I think putting a big while loop around a block diagram containing
> event structures is an ugly way of continually polling for events.
> This is not required in Visual C++ because of the use of a message
> map. Is there a more sophisticated way of continually running a
> program without a while loop.