matlab daq session with NI PCI-6733 - no more space in the buffer (-50410)

1 view (last 30 days)
I am trying to generate a continuous output signal using the NI PCI-6733. i use the following code modified from a DAQ library example
devices = daq.getDevices();
s = daq.createSession('ni');
[ch1,idx1] = addAnalogOutputChannel(s,'Dev2','ao0','Voltage');
s.IsContinuous = true;
s.Rate=8000;
data=[linspace(-10,10,2500)';linspace(10,-10,2500)'];
lhq = addlistener(s,'DataRequired', ...
@(src,event)src.queueOutputData(data));
lhe = addlistener(s,'ErrorOccurred', @myErrorFunction);
%
queueOutputData(s,data) ;
startBackground(s);
function myErrorFunction(src,event);
disp(getReport(event.Error));
end
A similar problem was reported on Mar 2017.
Note: the same code works much better on the NI-USB-6216

Answers (0)

Categories

Find more on Data Acquisition Toolbox Supported Hardware in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!