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

6 ビュー (過去 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 Center および File ExchangeSimultaneous 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