취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

one repetition loop

해결 완료!
솔루션으로 이동

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 포인트
1/7 메시지
3,907 조회수

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
2/7 메시지
3,887 조회수

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 포인트
3/7 메시지
3,862 조회수

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 포인트
4/7 메시지
3,857 조회수
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 포인트
5/7 메시지
3,851 조회수

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

6/7 메시지
3,844 조회수
솔루션
주제 작성자 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



7/7 메시지
3,834 조회수