Code covered by the BSD License  

Highlights from
EasyGUI

image thumbnail
from EasyGUI by Gautam Vallabha
EasyGUI ver 1.0 -- Build GUIs quickly and easily in MATLAB

daqplot
% DAQPLOT     -   Analog data acquisition GUI
%
%   DAQPLOT is a simple GUI that demonstrates the GUI.DAQINPUT widget.
%   This widget allows the user to configure and start analog data
%   acquisition. The data is plotted as it is aquired.
%
%   THIS GUI REQUIRES THE DATA ACQUISITION TOOLBOX

%   Copyright 2009 The MathWorks, Inc.

function daqplot

myGui = gui.autogui;
daq = gui.daqinput;

daq.AdaptorName = 'winsound';
daq.DeviceId = '0';
daq.Channels = 1;
daq.SampleRate = 8000;

while myGui.waitForInput()
    info = daq.Value;
    plot(info.data);
end

Contact us at files@mathworks.com