LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need to clear a Dialog box with an input from an I/O module.

I am writing a VI that displays the status of some inputs from a Digital I/O module (USB-6501). I need a dialog box that pops up when certain inputs are set to display a user message, and then goes away when the input is cleared or the OK button is pressed. While the message is being displayed the program must continue to monitor the input lines.
0 Kudos
Message 1 of 3
(2,763 Views)
Hi Craig,

In order to do this you need to put a One Button Dialog in a while loop in parallel to your DAQ code. You will be able to continue acquiring data in the first loop and have the user press ok whenever they want. In order to close the dialog box programmatically, you will need to simulate an escape key press.

I have attached some code (LabVIEW 8.2) to show you what I mean. I programmed the code to generate a dialog box when the loop index reaches 3. At this point, the user may close it the whenever they want and the code in the parallel loop keeps running (as you would want your DAQ code to do). I also programmed the code to simulate an escape button keypress when the counter reaches 6 (you could adapt this to take a specific value from your DAQ device and close it when this value is acquired). I hope this helps.

Good luck with your application!

Steven C
0 Kudos
Message 2 of 3
(2,742 Views)

Steven,

 

Thanks for taking the time to give me a hand. You got me on my way.

 

Craig

0 Kudos
Message 3 of 3
(2,723 Views)