03-10-2009 09:09 AM
I am trying to prompt the user to take action based on events in a .vi, but I don't want the .vi to wait for the user. (i.e. I want the .vi to keep doing its stuff, loops running, measurements being taken and analyzed, etc. no matter how long it takes the user to get around to responding)
If I just use a normal 'user-dialog' subvi, the program waits for a response. How can I break the .vi's dependency on the user dialog?
Thanks,
Sean
03-10-2009 09:14 AM
03-10-2009 09:33 AM
Hey Joe,
Thanks for your reply.
I do actually have several independent loops, because I don't want the various resources to conflict with each other. Most of the UI is handled by another loop, but I've found that it is very easy to introduce problems when setting up communication between the loops.
To safely implement it through the UI loop I would have to add an additional variable. Then I would have to flag it in the calling loop, detect the change in the UI loop, revert the boolean variable, and call the user_dialog (preferably without causing the UI loop to be non-responsive to calls/changes from other parts of the code).
I was hoping to just spawn a temporary independent thread to handle this case (and avoid unnecessary complications). It seems like it should be possible, but....
03-10-2009 09:39 AM