How to ploting input signal by "Digilent Analog Discovery Pro 3450"

조회 수: 4 (최근 30일)
도균
도균 2024년 5월 15일
댓글: Angelo Yeo 2024년 5월 20일
I am currently trying to use a library to interface Analog Discovery with MATLAB. However, I am encountering an issue. I am practicing the Getting Started code from the Digilent toolbox, and there are no problems when using the Analog Discovery 2 (AD2_0) for Blocking Input Stream. However, when using the "Digilent Analog Discovery Pro 3450" (ADP3450_0), the Blocking Input Stream does not work. I have attached the plotted image below.
The plotting keeps getting stuck like the image below. How can I fix this? The code is as follows:
daqreset;
devices = daqlist %list devices
devices.DeviceInfo(1)
%Single Scan
Read data from 2 analog input channels the display data
daqreset;
dq = daq("digilent");
addinput(dq,"ADP3450_0", "ai0" ,'Voltage');
addinput(dq,"ADP3450_0", "ai1" ,'Voltage');
ss = read(dq)
%Blocking Input Stream
Read data for 2 analog input channels then plot
daqreset;
dq = daq("digilent");
addinput(dq, "ADP3450_0", "ai0" ,'Voltage');
addinput(dq, "ADP3450_0", "ai1" ,'Voltage');
systemRate = 1e8; %100Mhz max frequency for AD2_0
rDiv = uint32(1) % Rate divisor is expected to be integer
rate = systemRate/rDiv;
dq.Rate = rate; % 100Mhz
data = read(dq, 100);
figure(1);
title('Blocking Input Stream');
xlabel('Samples');
ylabel('Volts');
plot([data.ADP3450_0_ai0, data.ADP3450_0_ai1]);

채택된 답변

Angelo Yeo
Angelo Yeo 2024년 5월 15일
Unfortunately, Analog Discovery Pro 3450 is not a supported hardware. Only Analog Discovery (LEGACY) and Analog Discovery 2 are supported. See the page below for more information.
Please go to this page to request a new hardware support.
  댓글 수: 2
도균
도균 2024년 5월 19일
Thank's for reply
But Digilent Toolbox say's they support Analog Discovery Pro 3450...
Here it is specified, but what does this mean??
Angelo Yeo
Angelo Yeo 2024년 5월 20일
@도균: That's good to know. However, unfortunately, I'm not so sure about the third-party toolboxes. I think I only told you about MathWorks' hardware support package. Moreover, I do not have the device, so I cannot reproduce the issue for you. You can ask @Digilent.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by