AnalogOutput

ao = analogoutput('mcc');
ch = addchannel(ao,1);
set(ao,'TriggerType','Immediate');
set(ao,'RepeatOutput',4);
set(ao,'SampleRate',1000);

freq = 44;
fs = get(ao,'SampleRate');
N = 4400;
t = (0:N-1)/fs;
y = 0.5*sin(2*pi*freq*t)+2;
putdata(ao,y');
idx = 1:100;
plot(t(idx),y(idx));

start(ao);
wait(ao,30);

Below is the signal captured from the oscilloscope.

daqstop;