LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

update global variable on front panel of another VI

I have a main VI that has the GUI for the operators that has several steps with multiple sub vi's. I want to display the status (where I am in the process) on the GUI. I am using global variables, and the status updates in the global variable front panel just fine, however it only outputs the last value to the operator GUI. I would like it to show the new status at each point in the code. I read something about action engines but I am not sure is that is the correct way. I attached some code just as an example of how I am doing it right now.  

0 Kudos
Message 1 of 3
(2,783 Views)

@lvuser333 wrote:

I have a main VI that has the GUI for the operators that has several steps with multiple sub vi's. I want to display the status (where I am in the process) on the GUI. I am using global variables, and the status updates in the global variable front panel just fine, however it only outputs the last value to the operator GUI. I would like it to show the new status at each point in the code. I read something about action engines but I am not sure is that is the correct way. I attached some code just as an example of how I am doing it right now.  


i would implement a state machine, in your case. and look into references to bring the info up to the main vi if need to....

Spoiler
example.png
0 Kudos
Message 2 of 3
(2,778 Views)

Based on your example, a state machine would work well.  I don't like using References to update indicator values.  It causes thread swapping and is slow.  I much prefer to use User Events to send data to an Event Structure.  The event structure can then update the indicators based on the data in the event itself.



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 3 of 3
(2,744 Views)