The Maximun rate of NI DAQ Card in MATLAB can not reach that in the specification.

조회 수: 5 (최근 30일)
Ganwei Yan
Ganwei Yan 2020년 12월 25일
편집: Edgar Pena 2022년 9월 14일
I'm using PCI 6259 and MATLAB 2020b. The Maximum update rate for a single AO output channel is 2.86MS/S according to the specification, but when I use
daqSession = daq('ni');
daqSession.addoutput('Dev1','ao0','Voltage');
daqSession.Rate = 2000000;
Then it says, Rate cannot exceed 1000000 in the current configuration.
Is it the limited by MATLAB? And can I achieve that specified speed using LabView or c++/c#?

답변 (1개)

Chidvi Modala
Chidvi Modala 2021년 3월 30일
This is a known issue and our developers are aware of it and will try to fix it in future releases.
  댓글 수: 1
Edgar Pena
Edgar Pena 2022년 9월 14일
편집: Edgar Pena 2022년 9월 14일
Are there any updates on this issue? I am able to achieve the specified sampling rate using Python and then having MATLAB call a Python script (as in the code below), but I am still unable to achieve any sampling rate above 1 MS/s with MATLAB. Doing everything in MATLAB would be much more convenient.
%%% Run Python code to control DAQ
pe = pyenv;
if (~pe.Status==matlab.pyclient.Status.Loaded)
pyenv('Version','C:\Users\myusername\Anaconda3\python.exe')
end
path_to_file = fileparts(which('DAQ_simulation_script.py'));
if count(py.sys.path,path_to_file) == 0
insert(py.sys.path,int32(0),path_to_file);
end
pyrunfile("DAQ_simulation_script.py",...
f_i=freq,Fs_i=sampling_rate_Hz,ramp_rate_i=ramp_rate_mA_per_sec,max_amplitude_i=ramp_peak_amplitude_mA,duration_at_max_i=duration_at_max_amplitude)

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

카테고리

Help CenterFile Exchange에서 Simultaneous and Synchronized Operations에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by