MoonNote

반응형

 

You have a large LabVIEW application with over 200 subVIs written by you and your colleagues. It is functioning incorrectly, and you are fairly certain the issue is in one of the subVIs that you wrote. Which of the following strategies will most effectively troubleshoot the issue? 

 

1. Open all of the front panels for the subVIs you wrote and observe the control and indicator values during execution

2. Probe all wires going into and out of your subVIs

3. Set a breakpoint before each of the subVIs you wrote and turn on Execution Highlighting whenever the code pauses

4. Use the Step functions to step into each of the subVIs you wrote and step over all of the others


정답 보기는 아래 더보기 클릭

 

더보기

정답 : 4. Use the Step functions to step into each of the subVIs you wrote and step over all of the others

200개가 넘는 SubVI들로 구성된 LabVIEW application에서 특정 subVI에 이슈가 있어 디버깅이 필요할 때 가장 적절한 troubleshooting 방법을 물어보는 문제이다. 먼저 디버깅을 위해 모든 SubVI의 프런트 패널을 열어야하는 1번과 모든 SubVI 출력 와이어에 Probe를 찍는 2번의 경우 비효율적인 방법이므로 정답에서 제외시킨다.(실제 N개의 SubVI를 모두 프로브를 찍거나 프런트 패널에서 값을 확인하려고해도 문제에서 언급한 것처럼 200개의 데이터를 사람이 한번에 확인하기란 쉽지 않다..)

3번의 경우도 Highlight를 통하여 breakpoint 부분을 살펴본다는 내용인데 Breakpoint를 설정해주어야한다는 번거로움과 Highlight를 사용하면 실제 루프 속도보다 코드가 느리게 실행되기에 적절하지 않다. Highlight는 단순 데이터 흐름을 보기 위한 값 확인 용도로 사용 가능하나 느려진 루프속도가 코드 기능에 영향(Time 설정과 연관된 코드 등)을 끼칠 가능성도 있다고 생각하면 될 듯하다.

4번은 단계별 실행하기 및 나가기를 통하여 각각의 SubVI를 Troubleshooting하는 방법으로 위의 방법들에 비해 Toolbar의 버튼만 사용하면되므로 단계별 실행하기 및 나가기를 통하여 각각의 SubVI 기능들을 살펴볼 수있기에 가장 적절한 방법이라고 보면 된다. 따라서, 정답은
4. Use the Step functions to step into each of the subVIs you wrote and step over all of the others이다.

공유하기

facebook twitter kakaoTalk kakaostory naver band