I am trying to run one VI that acts as an intermediate interface (it is not the main interface, a subvi to the main interface) and when I press the Start Test (see pic 1 ) it will start to aquire data and display it. Now when it is displaying, it will also open a subvi to display the gages (see pic).
the gages subvi opens on the second monitor and the intermediate interface is on the other monitor. This works great, until I try to stop the test, using the stop test button (attached to the stop of the wqhile loop).
It seems like the focus of the vi is switching rapidly from the interface and the gage vi and not allowing me to stop the test using the stop test button (or any other button for that matter). I have to abort in order to stop taking data. Even in highlight execution mode, I cannot click the stop button 9it never depresses when i click the mouse on it)
do I need to use the Vi server or some other dynamic caller to load the subvi in order to accomplish my task, or will my current setup work with some modifications? Is my vi flawed in that I cant stop the data aquire while loop using the button in an event structure (will it read teh stop test button only when it enters the event and not again??) and i need to stop it progmatically instead of the button.
thanks for your time again.