11-11-2011 09:35 AM
My question: Does the "display message to user" express .vi pause the excecution of the program until I click "ok" on the message it displays. I just made this program and I was under the impression that it would, but I kept seeing that sub.vi (with the Output/DC constant attached) run before the message was displayed when I was testing this program.
11-11-2011 09:46 AM
Yes it will pause it.
What makes you think the subVI is running first?
Put some probes on the wires to see.
11-11-2011 09:46 AM
Hello Lars,
In your case the display message to user express VI stops your programm: The error is returned only once you close your message and this data is needed for your sub-vi to run. If you want both to run in parallel use two error lines which you can merge after
Regards
11-11-2011 09:52 AM
The sub.vi controls a gpib device, transfering it from output and input mode, and the display message is meant to pause the .vi and tell the user to switch the voltmeter from the input to the output (or vice versa). I tested it for the first time a few minutes ago and it seemed like the device was getting out of sync with the messages, which is why I thought that sub.vi was running before the display message. Maybe I just need to play around with it a little bit to see what is actually happening.
11-11-2011 09:59 AM
If the error cluster does not cross below the dialog but is actually wired to it then the Subvi will only execute once the dialog has been closed by the user.
So I also think that you're seeing some other effect.
11-14-2011 03:44 PM
Hi LarsUlrich,
Have you tried running your VI using highlight execution to see when the subVI runs.