I think LabVIEW should have something like the dialog VIs that acts as a popup where the vi displays a message to the user but doesn't hang up code and wait on the user to press a button.
An example case is a state machine that has error checking built in errors out. Instead of creating a more complex error handling scheme to display the state machine errored out and heres why then shutdown the state machine, you could instead drop this async popup in the state with the message to display the error occurred then have the state machine shutdown like normal. This way, the user knows "the state machine shutdown for X reason" while the state machine also goes into a safe state.
I think the async popup is easier to trace since the error message is located in that section that detected the error vs having some sort of store an error string then in the shut down case read if there is an error and if so display the error once the station is already shutdown. Additionally, you cold see where all asnyc message blocks are via dropping one in your code then right clicking and searching for all instances. This could streamline the process to see where the fault occurred since the async message block would be in the location of the fault itself.
I have currently built something like this that is a reentrant VI whose input is a string and a secondary VI that launches the display message VI. It's a bit of a work around, but I can display a message to the user while my code continues to do whatever it needs to.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.