LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unresponsive front panel

Hi,
I'm writing a pretty simple vi with a while loop containing serial comms. My problem is that when the vi is running, none of the front panel controls respond to user action. This isn't a pc speed issue as the stop button responds straight away, anyone got any idea whats going on?
Thanks for your time
Ben
0 Kudos
Message 1 of 5
(3,506 Views)
Hi Ben,

Add a small delay in you while loop using the Wait (ms) function. This allows labview to do other things such update the front panel.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 5
(3,506 Views)
You may want to post your code or a picture of your diagram. This would help others visualize the problem. A lot of things could cause this.
0 Kudos
Message 3 of 5
(3,506 Views)
Thanks ray,
I'd already tried that, found out the root of the problem: I had an events structure that I had disabled for debugging by putting it in a case statment wired to "false". It seems that disabling the events structure prevents ANY front panel control!
Ben
0 Kudos
Message 4 of 5
(3,506 Views)
> I'd already tried that, found out the root of the problem:
> I had an events structure that I had disabled for debugging by putting
> it in a case statment wired to "false". It seems that disabling the
> events structure prevents ANY front panel control!

The Event structure collects events into its queue and it waits for you
to proces them. By default it is set to hold off processing other
events until you finish with the one that just occurred. This allows
you to set properties to disable, enable, show, hide, or whatever else
you want to do with it. The other events haven't been thrown away, they
are waiting to be processed.

If you do not want the UI event processing to be synchronized like t
his,
you can turn it off in either the dialog or the popup, I'm not looking
at it right now.

While this disabling will allow your VI to run more or less normal,
because it is still queuing other value change messages, or whatever you
have registered for, you will not want to run the VI for long periods of
time without processing the events.

Greg McKaskle
0 Kudos
Message 5 of 5
(3,506 Views)