% Set the device to Measurement Computing DAQ
ai = analoginput('mcc');

% Set the input channel to CH0 IN
addchannel(ai,0);

% Collect 800 samples at 8 KHz
ai.SampleRate = 8000;
ai.SamplesPerTrigger = 800;
ai.TriggerType = 'Immediate';

% Get the data
start(ai);
[d,t] = getdata(ai);

% Plot the data
figure(1);
clf;
plot(t,d);
