LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

one repetition loop

Solved!
Go to solution

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.

0 Kudos
Message 1 of 7
(3,626 Views)

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

Message Edited by JChec on 10-02-2009 01:38 PM
Message 2 of 7
(3,606 Views)

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.

0 Kudos
Message 3 of 7
(3,581 Views)

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?

 

 

Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



0 Kudos
Message 4 of 7
(3,576 Views)
It is in a rs-232 communication.It "senses" when a error is inside communication and it pops the message, but next time i start the test again i need to turn on the flag to have it activated again or else nothing happens.
0 Kudos
Message 5 of 7
(3,570 Views)

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

Message 6 of 7
(3,563 Views)
Solution
Accepted by topic author Dustyboy
As the previous poster suggests, put the flag in a shift register, which is reset by whatever boolean you start the test with. See attached.
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 7 of 7
(3,553 Views)