10-02-2009 04:58 AM
Hi, i need error message to occur only the first time it appears.See attached file.When error occurs in string it pops up errormessage, but it keeps repeating each time it sens the correct string /Match.What is best way to handle this case? any suggestions? Thanks.
Solved! Go to Solution.
10-02-2009 06:37 AM - edited 10-02-2009 06:38 AM
If I understand your problem correctly... you could just put the 'display message to user' in a case statement with a flag that goes false once the message has already displayed.
JChec
10-02-2009 07:48 AM
Close to solution, but it cant be like this because i have to set the flag everytime i start the test.I need it to be automatically but just once.Now it is just once (fine) but needs to be set each time.
10-02-2009 07:50 AM
Not sure what you mean that you need to set the flag each time you start the test. How do you start a test? Can you not use that "signal" to also reset the "first error" flag?
10-02-2009 08:02 AM
10-02-2009 08:14 AM
If you have a loop, place the flag on a shift register. Initialize the SR with false. It is much better codeing than using a FP control for the flag.
Felix
10-02-2009 08:20 AM