File Exchange

image thumbnail

MATLAB Support Package for Velleman PCSGU250 Oscilloscope + Function Generator

version (823 KB) by MathWorks Data Acquisition Toolbox Team
MATLAB library for controlling a Velleman PCSGU250 scope and generator


Updated 01 Sep 2016

View Version History

View License

The Velleman PCSGU250 is a combination 2-channel oscilloscope and function generator. This MATLAB Support package allows you to:
* configure scope properties such as triggers and time range
* retrieve waveforms from the scope
* configure the function generator
* create custom waveforms for the generator
The Support Package uses a Software Development Kit (SDK) from Velleman, and *does not* require Data Acquisition Toolbox or Instrument Control Toolbox. The included REAMDE.pdf guides you through the download and install of the Velleman SDK and related USB driver.

Sample usage:
% create a Velleman PCSGU250 object
lab = vellscope.pclab

% hide the Velleman PCSGU250 GUI

% configure and start the function generator
lab.FgenFunction = 'sine';
lab.FgenFrequency = 20;
lab.FgenAmplitude = 2;

% configure and collect data from the scope
lab.VoltsPerDiv_Ch1 = '3V';
lab.TimePerDiv = '2ms';
pause(5) % wait to let scope acquire data
data = a.readChannel(1);

% clean up

Cite As

MathWorks Data Acquisition Toolbox Team (2021). MATLAB Support Package for Velleman PCSGU250 Oscilloscope + Function Generator (, MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)


Nice Package!
May i ask you a question?
readChannel gives me, as indicated in README document, the last 4096 samples acquired by the scope: what is the sample rate? It is possible to vary it (as indicated in pcsgu250 specs)?

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!