필터 지우기
필터 지우기

Acquire data from NI USB-6212

조회 수: 4 (최근 30일)
Gopika Akhil
Gopika Akhil 2018년 5월 15일
My work involves checking the performance of a DAC. The steps involved are 1)Convert the continuous ECG signal to DIGITAL in matalab code. 2)It is send to Arduino uno which gives data to TLC 7528C DAC. 3) When output of DAC is seen on an oscilloscope its giving a perfect shape back. But it has to be compared with original signal in MATLAB code. 4)Output of DAC connected to NI-USB-6212,the NI automation explorer is giving a good ECG signal. 5)To get this signal in MATALB tried the following code
sobj = daq.createSession('ni'); sobj.addAnalogInputChannel('Dev1', 'ai13', 'Voltage') sobj.Rate = 125; sobj.DurationInSeconds = 1; lh = sobj.addlistener('DataAvailable',@(src,event) plot(event.TimeStamps,event.Data)); sobj.startBackground(); delete (lh)
But in the plot I am getting error signal. DATA ACQUISITION TOOL BOX is also giving plot of error signal.How can i get the ECG samples from NI USb-6212 in MATLAB?

답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Acquisition Toolbox Supported Hardware에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by