LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to remove recursive alert messge when the value exceeds preset value

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.

0 Kudos
Message 1 of 4
(2,669 Views)

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

0 Kudos
Message 2 of 4
(2,660 Views)

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.

0 Kudos
Message 3 of 4
(2,648 Views)

First, you need to put in a shift register like Lynn said.

 

Then you just need some boolean logic.

 

0 Kudos
Message 4 of 4
(2,639 Views)