s = daq.createSession('digilent') ch = addAnalogInputChannel(s,'AD1', 1, 'Voltage') s.Rate = 50e3; s.Channels.Range = [-25 25]; s.DurationInSeconds = 20 [data, timestamps, triggerTime] = s.startForeground; % Display the results\\\\\\\\\\\\\\\ plot(timestamps, data); xlabel('Time (seconds)') ylabel('Voltage (Volts)') title(['Clocked Data Triggered on: ' datestr(triggerTime)])