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

9 Ansichten (letzte 30 Tage)
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#?

Antworten (1)

Chidvi Modala
Chidvi Modala am 30 Mär. 2021
This is a known issue and our developers are aware of it and will try to fix it in future releases.
  1 Kommentar
Edgar Pena
Edgar Pena am 14 Sep. 2022
Bearbeitet: Edgar Pena am 14 Sep. 2022
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)

Melden Sie sich an, um zu kommentieren.

Tags

Produkte


Version

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by