I am trying to use analog output and oscilloscope and record the data with Matlab using Analog Discovery 2. I am generating and recording signals at ~500kHz, so I want to set the sample rate as 100MS/s. With WaveForms, I can reach this sample rate, but when I set the sample rate with Matlab code,
Question
Junfei Li
Hi,
I am trying to use analog output and oscilloscope and record the data with Matlab using Analog Discovery 2. I am generating and recording signals at ~500kHz, so I want to set the sample rate as 100MS/s. With WaveForms, I can reach this sample rate, but when I set the sample rate with Matlab code,
s = daq.createSession('digilent')
ch_out = addAnalogOutputChannel(s,'AD1', 1, 'Voltage')
rate = 1e8;
s.Rate = rate;
The following error pop up:
Rate cannot exceed 1000000 in the current configuration.
How can I resolve this problem?
Thanks
Junfei
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.