Running this VI causes your computer to run out of memory. What is the most likely cause? 1. The loop time delay is too large 2. The DAQmx Read VI returned an error 3. The specified current range is too high 4. The array output tunnel on the While Loop has no bounds 정답 보기는 아래 더보기 클릭 더보기 정답 : 4. The array output tunnel on the While Loop has no bounds 위의 코드를 실행하였을 때 PC에서 메모리 부족 현상이 나타날 가능성이 있는 경우에..
버퍼 에러(Buffer Error) 지난 시간 버퍼란 메모리 영역 중 '데이터를 임시 저장하는 공간'이라고 설명했었습니다. 버퍼 에러는 이 버퍼 구간에서 발생하는 에러를 말하며 데이터 수집에서는 기본적으로 크게 오버플로우(Overflow), 오버라이트(Overwrite) 두 가지를 다룹니다. 오버플로우(Overflow) 디바이스 FIFO(First In First Out) 메모리가 한계치에 도달하였을 때 발생하는 에러입니다. 장비마다 메모리 영역에서의 버퍼 크기는 한계가 있을 수밖에 없는데 이는 우리가 장비를 컨트롤할 때 설정하는 샘플링 스펙에 영향을 많이 받습니다. 샘플링이 빠르면 그만큼 버퍼에 데이터가 쌓이는 속도 또한 빠른만큼 적절하게 빨리 비워줘야지만 오버플로우 현상을 막을 수 있습니다. 샘플링 ..
실습 구성 ◾ NI Data Acquisition Device : USB-6212 ◾ DAQmx Driver 실습 방법 ◾ NI Data 장비를 이용한 Counter Input Read Pulse Frequency 예제 ◾ CO에서 나오는 Pulse Train 정보를 새로운 CI로 받아서 확인하는 예제 ◾ NI MAX에서 펄스 트레인을 생성하고 Python으로 펄스 주파수를 측정하여 결과를 명령창에서 확인 ''' Copyleft © MoonNote 작성자 : MoonNote 블로그 주소 : MoonNote.tistory.com ''' import nidaqmx import time from ast import Break from nidaqmx.constants import FrequencyUnits, E..
실습 구성 ◾ NI Data Acquisition Device : USB-6212 ◾ DAQmx Driver 실습 방법 ◾ NI Data 장비를 이용한 Counter Input Read Pulse Period 예제 ◾ CO에서 나오는 Pulse Train 정보를 새로운 CI로 받아서 확인하는 예제 ◾ NI MAX에서 펄스 트레인을 생성하고 Python으로 펄스 주기 측정하여 결과를 명령창에서 확인 ''' Copyleft © MoonNote 작성자 : MoonNote 블로그 주소 : MoonNote.tistory.com ''' import nidaqmx import numpy as np from nidaqmx.constants import TimeUnits, AcquisitionType with nidaq..
실습 구성 ◾ NI Data Acquisition Device : USB-6212 ◾ DAQmx Driver 실습 방법 ◾ NI Data 장비를 이용한 Counter Input Read Pulse Width 예제 ◾ CO에서 나오는 Pulse Train 정보를 새로운 CI로 받아서 확인하는 예제 ◾ NI MAX에서 펄스 트레인을 생성하고 Python으로 펄스 주기 측정하여 결과를 명령창에서 확인 ''' Copyleft © MoonNote 작성자 : MoonNote 블로그 주소 : MoonNote.tistory.com ''' import nidaqmx from nidaqmx.constants import TimeUnits, Edge with nidaqmx.Task() as task : task.ci_cha..
실습 구성 ◾ NI Data Acquisition Device : USB-6212 ◾ DAQmx Driver 실습 방법 ◾ NI Data 장비를 이용한 Counter Input Read Pulse Period 예제 ◾ CO에서 나오는 Pulse Train 정보를 새로운 CI로 받아서 확인하는 예제 ◾ NI MAX에서 펄스 트레인을 생성하고 Python으로 펄스 주기 측정하여 결과를 명령창에서 확인 ''' Copyleft © MoonNote 작성자 : MoonNote 블로그 주소 : MoonNote.tistory.com ''' import nidaqmx from nidaqmx.constants import TimeUnits, Edge, CounterFrequencyMethod with nidaqmx.Tas..
실습 구성 ◾ NI Data Acquisition Device : USB-6212 ◾ DAQmx Driver 실습 방법 ◾ NI Data 장비를 이용한 Counter Output Continuous Sampling 예제 ◾ Counter Output에서 나오는 Pulse Train 정보를 AI로 받아서 확인하는 예제 ◾ UI 툴은 따로 사용하지 않아 NI MAX에서 Analog Input 값으로 확인 ''' Copyleft © MoonNote 작성자 : MoonNote 블로그 주소 : MoonNote.tistory.com ''' from ast import Break import nidaqmx from nidaqmx.constants import FrequencyUnits, Level, Acquisiti..
실습 구성 ◾ NI Data Acquisition Device : USB-6212 ◾ DAQmx Driver 실습 방법 ◾ NI Data 장비를 이용한 Counter Output Finite Sampling 예제 ◾ Counter Output에서 나오는 Pulse Train 정보를 AI로 받아서 확인하는 예제 ◾ UI 툴은 따로 사용하지 않아 NI MAX에서 Analog Input 값으로 확인 ''' Copyleft © MoonNote 작성자 : MoonNote 블로그 주소 : MoonNote.tistory.com ''' import nidaqmx from nidaqmx.constants import FrequencyUnits, Level, AcquisitionType with nidaqmx.Task()..
실습 구성 ◾ NI Data Acquisition Device : USB-6212 ◾ DAQmx Driver, numpy 실습 방법 ◾ NI DAQ 장비를 이용한 Digital Input Continuous Sampling 예제 ◾ 서로 다른 Digital Port의 0~2번 line을 물리적으로 연결 ◾ UI 툴은 따로 사용하지 않아 NI MAX에서 디지털 출력을 하고 명령창에서 Input 값 출력해서 확인 ''' Copyleft © MoonNote 작성자 : MoonNote 블로그 주소 : MoonNote.tistory.com ''' import nidaqmx import time import numpy as np from ast import Break from nidaqmx.constants imp..
실습 구성 ◾ NI Data Acquisition Device : USB-6212 ◾ DAQmx Driver, numpy 실습 방법 ◾ NI DAQ 장비를 이용한 Digital Output Continuous Sampling 예제 ◾ Digital Output 1채널과 Analog Input 1채널을 물리적으로 연결 ◾ UI 툴은 따로 사용하지 않아 Python에서 디지털 출력을 하고 NI MAX에서 정상 동작하는지 AI로 확인 ''' Copyleft © MoonNote 작성자 : MoonNote 블로그 주소 : MoonNote.tistory.com ''' import nidaqmx import numpy as np from ast import Break from nidaqmx.constants impo..
실습 구성 ▪ NI Data Acquisition Device : USB-6212 ▪ DAQmx Driver, numpy 실습 방법 ▪ NI DAQ 장비를 이용한 Analog Output Continuous Sampling(HW Timing) 예제 제작 ▪ AO 1채널과 AI 1채널을 물리적으로 연결 ▪ NI MAX 테스트 패널에서 AI를 계속 연속 샘플링하고 있고 Python으로 Sinewave 출력 ''' Copyleft © MoonNote 작성자 : MoonNote 블로그 주소 : MoonNote.tistory.com ''' import nidaqmx import numpy as np import math from ast import Break from nidaqmx.constants import ..
실습 구성 ▪ NI Data Acquisition Device : USB-6212 ▪ DAQmx Driver, numpy 실습 방법 ▪ NI DAQ 장비를 이용한 Analog Output Finite Sampling(HW Timing) 예제 제작 ▪ AO 1채널과 AI 1채널을 물리적으로 연결 ▪ NI MAX 테스트 패널에서 AI를 계속 연속 샘플링하고 있고 Python으로 Sinewave 출력 ''' Copyleft © MoonNote 작성자 : MoonNote 블로그 주소 : MoonNote.tistory.com ''' import nidaqmx import numpy as np import math from nidaqmx.constants import AcquisitionType, Edge samp..
실습 구성 ◾ NI Data Acquisition Device : USB-6212 ◾ DAQmx Driver, matplotlib, numpy 실습 방법 ◾ NI DAQ 장비를 이용한 Analog Input Continuous Sampling(HW Timing) 예제 제작 ◾ AO 1채널과 AI 1채널을 물리적으로 연결 ◾ 출력은 NI MAX 테스트 패널에서 업데이트하고 입력받은 데이터를 Matplotlib로 디스플레이 * matplotlib쪽 스터디 되는대로 수정 필요할 수도 있음. 현재 실제 매Cycle마다 N채널 데이터처럼 그림 ''' Copyleft © MoonNote 작성자 : MoonNote 블로그 주소 : MoonNote.tistory.com ''' import nidaqmx import n..
실습 구성 ◾ NI Data Acquisition Device : USB-6212 ◾ DAQmx Driver, matplotlib 실습 방법 ◾ NI DAQ 장비를 이용한 Analog Input Continuous Sampling(SW Timing) 예제 제작 ◾ AO 1채널과 AI 1채널을 물리적으로 연결 ◾ 출력은 NI MAX 테스트 패널에서 업데이트하고 입력받은 데이터를 Matplotlib로 디스플레이 * matplotlib쪽 스터디 되는대로 수정 필요할 수도 있음. 현재 실제 매Cycle마다 N채널 데이터처럼 그림 ''' Copyleft © MoonNote 작성자 : MoonNote 블로그 주소 : MoonNote.tistory.com ''' import nidaqmx import matplotl..