MoonNote

반응형

The VI below continuously reads data from a hardware device. How should you stop the VI to make sure the hardware device is not in a bad or unknown state?

 

1. Close the VI to terminate it immediately.

2. Turn off the computer so the communication with the hardware device is cut off immediately.

3. Click the STOP button to allow the VI to execute a shut-down procedure so the hardware device terminates execution in a known, safe state.

4. Click the Abort button in the toolbar to immediately terminate execution of the VI.

 

 


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

 

 

더보기

정답 : 3. Click the STOP button to allow the VI to execute a shut-down procedure so the hardware device terminates execution in a known, safe state.

장비에서부터 연속적으로 데이터를 읽고있는 상황에서 장비를 정상적인 상태로 종료시키기 위해서는 어떻게 VI를 정지시켜야하는지 물어보는 문제이다. 장비를 종료시키는 방법으로 보면 3가지로 생각해볼 수 있다.
1. 윈도우 패널 닫기(X) 버튼
2. LabVIEW 도구 모음의 강제 종료 버튼
3. LabVIEW 패널에 있는 STOP 버튼

장비를 사용한다는 것은 보통 S/W에서 '장비 지정 - 설정 - 시작 - 읽기/쓰기 - 정지 - 지정 해제' 순으로 제어하게 되는데 소프트웨어가 실행(VI 실행) 중이라는 것은 읽기/쓰기 동작을 반복하고 있다고 볼 수 있다. 따라서, 소프트웨어에서 정상적으로 루프를 정지시켜주어야하는데 패널 닫기 및 강제 종료 버튼은 S/W에서만 연결을 해제하고 장비쪽에 마지막으로 입력된 명령이 남아있게 되므로 정상적인 종료 방법이라고 보기 어렵다. (패널 닫기 이벤트에서 코딩을 짜서 정상 종료되도록 할 수는 있으나 이 문제에서는 그런 정보가 없으므로 제외하고 생각하겠다.)

따라서 VI를 정상적으로 종료시키기위해 STOP 버튼으로 종료시키고 우리가 알고 있는 상태를 실행시켜 정상 종료해야 한다고 보는 것이 맞기에 3. Click the STOP button to allow the VI to execute a shut-down procedure so the hardware device terminates execution in a known, safe state. 정답이다. 

 

 

 

 

 

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

공유하기

facebook twitter kakaoTalk kakaostory naver band