04-04-2013 08:20 PM
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.
04-04-2013 08:50 PM - edited 04-04-2013 09:06 PM
@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....
04-05-2013 07:38 AM
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.