LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Detect Front Panel Activity

Hi all,

my VI needs to react to both front panel activity (which can originate from a lot of different controls) and a notifier. Waiting for the notifier is easy, but how do I find out if there has been front panel activity? The "Wait for Front Panel Activity" VI comes to mind, but because I also have to react to the notifier, I must set a timeout to "Wait for Front Panel Activity". Since the latter has no status output to indicate a timeout, I'm a little lost. Also, what about when I'm waiting for the notifier and some front panel activity occurs? Any ideas?

Michael
0 Kudos
Message 1 of 4
(3,036 Views)
Hi Michael

You can use an event-structure. There you can react on events generated by controls on the front panel, but you also can react on events generate programmatically.

Just search the example library.

Hope this helps.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 4
(3,028 Views)
The event structure is the way to go, You can then pick and choose which front panel activity you want. You can put the event structure in one loop and synchronize a second loop to execute your processing (either with notifiers or queues. This allows great control over the what and when actions of a program. The event structure removes any polling and is therefore very responsive and processor non-intensive.

Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 3 of 4
(3,019 Views)
Thanks for the help. I might be back later with a few more questions tomorrow, after I've looked through the examples.

Michael
0 Kudos
Message 4 of 4
(2,991 Views)