LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Indicating a variable value change on the front panel (event? signal? queue?)

I have a subvi which performs a measurement in a loop, and I would like to update the front panel of my main VI each time the measrement is performed.  How do i generate an event when this variable is written to/changes value?  the variable being written to is global, but I can't get the front panel of the main VI to update without polling, which distatesteful.

0 Kudos
Message 1 of 2
(2,258 Views)

If I'm sending data back up to a GUI from a subVI, I like to use User Events.  I don't recommend using a global variable.  You can send the data in the event.

 

If you open the LabVIEW Example Finder (Help->Find Examples...) and search "user events" there is a fairly old example that should be able to explain the details.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 2
(2,256 Views)