MoonNote

반응형

If you disable automatic error handling, what happens if an error occurs when you run the code shown below?

 

1. LabVIEW executes all nodes in the VI without displaying any error information.

2. LabVIEW executes all nodes in the VI and then displays an error dialog.

3. When the error occurs, LabVIEW immediately suspends execution and displays an error dialog.

4. When the error occurs, LabVIEW immediately suspends execution but does not display any error information.


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

 

 

더보기

정답 : 1. LabVIEW executes all nodes in the VI without displaying any error information.


자동 에러 핸들링이 비활성화로 설정되었을 경우 이미지의 코드를 실행하였을 때 에러 발생시 어떻게 되는지 물어보는 문제이다.
LabVIEW 자동 에러 핸들링은 기본적으로 활성화된 상태로 설정이 되어있으며 VI 프로퍼티 >> 실행 항목에서 자동 에러 핸들링 허용에 대해 활성화/비활성화를 설정할 수 있다. 


자동 에러 핸들링이 활성화된 경우 에러가 발생한 함수가 하이라이트되며 그 즉시 실행이 종료된다. 그리고 팝업 창이 나타나면서 에러에 대한 정보(상태/코드/에러 메시지)를 사용자에게 보여준다. 비활성화의 경우 코드가 실행되게되고난 후 따로 에러 대화 상자 또는 인디케이터를 표시를 하지 않는 한 에러 메시지가 나타나지 않는다. 따라서 이미지에서는 에러 라인이 따로 연결되어있지 않고 자동 에러 핸들링이 비활성화되었을 경우이기 때문에 1. LabVIEW executes all nodes in the VI without displaying any error information.가 정답이다.

 

 

 

 

 

※ 이 글이 도움이 되었다면 "🤍공감" 버튼을 클릭해주세요. 클릭 한번이 글 쓰는데 큰 힘이 됩니다.

 

 

공유하기

facebook twitter kakaoTalk kakaostory naver band