Code covered by the BSD License  

Highlights from
MATLAB Support Package for Velleman PCSGU250 Oscilloscope + Function Generator

5.0
5.0 | 1 rating Rate this file 20 Downloads (last 30 days) File Size: 823 KB File ID: #32328

MATLAB Support Package for Velleman PCSGU250 Oscilloscope + Function Generator

by

 

25 Jul 2011 (Updated )

MATLAB library for controlling a Velleman PCSGU250 scope and generator

| Watch this File

File Information
Description

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
 lab.hide

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

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

 % clean up
 delete(lab)

MATLAB release MATLAB 7.8 (R2009a)
Other requirements Windows platform only
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
19 Jan 2015 Marco

Marco (view profile)

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)?

Updates
04 Aug 2011

Updated README.pdf

Contact us