Benchtop Measurement and Test
Distributed Measurement and Control
High-Performance Test
Systems Engineering Software
Perspectives showcases how NI sees what’s next in the world of test and technology.
You can request repair, RMA, schedule calibration, or get technical support. A valid service agreement may be required.
Provides support for NI data acquisition and signal conditioning devices.
Provides support for Ethernet, GPIB, serial, USB, and other types of instruments.
Provides support for NI GPIB controllers and NI embedded controllers with GPIB ports.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
07-19-2019 04:40 AM - edited 07-19-2019 04:41 AM
안녕하세요!!
질문이 있는데 마땅히 쓸곳이 없어서 여기다가 써봅니다...
코딩을 하던 도중에 이벤트 구조안에서 While loop를 돌려야 하는 경우가 생겼는데요
이럴 경우에 프런트 패널이 이벤트 큐 중에는 비활성화가 되서 정지버튼이 먹질 않는데
혹시 해결할수 있는 방법은 없는지 궁금하네요 !!
정지 버튼 프로퍼티 노드에서 비활성화 노드를 사용해 활성화로 바꾸어 보려고 하였지만 되질않네요 ㅠㅠ
현재 상황에 처해있는 예시를 올려드립니다!!
어떤 상황을 만족했을 떄 정지가 아닌 정지버튼 불리언을 통해서 정지를 시키고 싶습니다 ㅠㅠ
혹시 아시는분 있으시면 가르쳐주시면 감사하겠습니다
07-22-2019 01:14 AM
While Loop가 동작하고 있으면 접근이 안됩니다.
따라서 작성하신 코드 처럼하면 강제종료 해야 합니다.
While Loop를 이벤트 외부로 꺼내어 동일하게 구현 할 수있습니다.
확인 버튼 누르면 그래프로 데이터를 그리고, 정지2 버튼을 누르면 그래프만 종료 됩니다.
만약에 Event 안에 While Loop를 넣어야 한다면, 일정 조건일 때 True(불리언 상수)를 While 종료 조건에 넣어서 끝나도록 해야 합니다.
(하지만, While Loop 중간에는 접근 할 수없습니다.)
07-22-2019 03:17 AM
감사합니다 !!
What do you need our team of experts to assist you with?
Thanks!
We'll be in touch soon!