04-11-2011 04:54 AM
The alert message pop out repeatedly when the value exceed the preset one. I tried putting the display message signal box outside the while loop but that will cause the alert message to not appear at all. How do I get the alert message to pop out only once after user clicks on the OK button on alert box? Thanks in advance.
04-11-2011 08:13 AM
Rather than connecting the output of the error comparison directly to the case structure containing the dialog, connect it to a shift register. Initialize the shift register to false. When the shift register value is false and the comparator is true, then display the dialog. While the comparator remains true, do not display the dialog. After the comparator has become false again, the shift register is reset to false so that the next true form the comparator again displays the dialog. You are making a logical edge detector rather than the simple level detector you are using now.
Lynn
04-11-2011 09:46 PM
Hi, I understand the logic behind the method however, I'm still unsure of how to work it out. I would appreciate if you could be more specific. Thank you so much for the prompt reply and suggested solution.
04-11-2011 10:54 PM - edited 04-11-2011 10:55 PM
First, you need to put in a shift register like Lynn said.
Then you just need some boolean logic.