Interface between Velleman PCSGU250 and MATLAB

Slides:



Advertisements
Similar presentations
Velleman Arbitrary Function Generator: Windows 7 by Mr. David Fritz
Advertisements

1 1 Mechanical Design and Production Dept, Faculty of Engineering, Zagazig University, Egypt. Mechanical Design and Production Dept, Faculty of Engineering,
Installing the MATLAB Add-On
Section 1: Process to create EAS Interface File  DoD Batch and Timecard Status Report  DoD Employee Missing Payroll Data Report  Distribute Labor Cost.
Velleman Oscilloscope: Windows 7 by Mr. David Fritz
Experiment 17 A Differentiator Circuit
Introduction to electronics lab ENGRI 1810 Using: Solderless prototype board (white board) Digital multimeter (DMM) Power Supply Signal Generator Oscilloscope.
PSPICE Tutorial Spring 2015
Twin T Notch Filter.
Seismic Octave Programming for Analog/Digital Converters Michael W. Siekman Electrical and Computer Engineering Senior Capstone Design Project 2007 Advisor:
MATLAB’s extensive, device-independent plotting capabilities are one of its most powerful features. They make it very easy to plot any data at any time.
Experiment 11: An Inverting Amplifier
1 Alan Rux Electrical and Computer Engineering Department University of Massachusetts Lowell Campus Analog Discovery Design Kit Analog Discovery Design.
Spectrum Analyzer. Another Oscilloscope??? Like an oscilloscope Oscilloscope in time domain Spectrum analyzer in frequency domain (selectable)
1 A Tool for System Simulation: SIMULINK Can be used for simulation of various systems: – Linear, nonlinear; Input signals can be arbitrarily generated:
SIMULINK Dr. Samir Al-Amer. SIMULINK SIMULINK is a power simulation program that comes with MATLAB Used to simulate wide range of dynamical systems To.
1 Lab Equipment. 2 TopicSlides DC Power Supply3-4 Digital Multimeter5-8 Function Generator9-12 Scope – basic controls13-20 Scope – cursors21-24 Scope.
HossamTalaat - MATLAB Course - KSU - 21/1/24 1 IEEE Student Branch - College of Engineering - KSU Getting started with Simulink By Prof. Hossam Talaat.
Simulink ® From Simulink® 7 Getting Started Guide.
1 AC Measurements Using the Oscilloscope and Multimeter by Mr. David Fritz.
Magnitude and Phase Measurements
Pulse Width Modulation (PWM) LED Dimmer Circuit
 Distortion – the alteration of the original shape of a waveform.  Function of distortion analyzer: measuring the extent of distortion (the o/p differs.
Physics 434 Module 3 - T. Burnett 1 Physics 434 Module 3 Acoustic excitation of a physical system.
Week 9: Series RC Circuit Experiment 14. Circuit to be constructed Shunt resistor It is good practice to short the unused pin on the trimpot when using.
The Function Generator and the Oscilloscope Dr. Len Trombetta 1 ECE 2100.
CLASS B AMPLIFIER 1. 2 In class B, the transistor is biased just off. The AC signal turns the transistor on. The transistor only conducts when it is turned.
Experiment 11: Non-Inverting Amplifier With Modifications that Require the Use of the Velleman Oscilloscope.
An Inverting Amplifier. Op Amp Equivalent Circuit The differential voltage v d = v 2 – v 1 A is the open-loop voltage gain v2v2 v1v1 An op amp can be.
Software Development. Chapter 3 – Your first Windows 8 app.
DEMONSTRATION FOR SIGMA DATA ACQUISITION MODULES Tempatron Ltd Data Measurements Division Darwin Close Reading RG2 0TB UK T : +44 (0) F :
A Differentiator Circuit.  All of the diagrams use a uA741 op amp. ◦ You are to construct your circuits using an LM 356 op amp.  There is a statement.
Experiment 17 A Differentiator Circuit
Experiment 12 Non-Inverting Amplifier. Experimental Procedure Clarification in Step 3 (Modeling) – To perform the DC Sweep in the sinusoidal voltage source.
Android Apps: Look and Feel Module 6, Intro to I.T., Fall 2011 Sam Scott.
General Engineering Polytechnic University Laboratory 9: Electrical Filters.
LAB 1 MATLAB, dSPACE and Simulink
Matlab -based Scope Automation and data analysis SW 29/05/2012 Presents by- Abed Mahmoud & Hasan Natoor Supervisor– Avi Biran.
Ver1.1. The Analysis Begins Plot your LIBS data, and get a copy of your captured image and download a copy of The Mars Lab Spectral Library. STEP 1.
Analog Discovery Arbitrary Function Generator for Windows 7 by Mr
ECEN/MAE 3723 – Systems I MATLAB Lecture 2. Lecture Overview What is Simulink? How to use Simulink  Getting Start with Simulink  Building a model Example.
Vibrationdata 1 Unit 5 The Fourier Transform. Vibrationdata 2 Courtesy of Professor Alan M. Nathan, University of Illinois at Urbana-Champaign.
Introduction to Phasors Week 2: Experiment 22. Experimental Procedures Do not do the steps labeled “Extra Credit” in the Procedure. No extra credit will.
EE3TR4 Communication Systems. 2 Objectives To provide an understanding of the practical communication systems such as AM and FM radio and digital modem.
Due DateWeek Experiment in Lab ManualTitle Pre-Lab Report Validation Post- Validation Report 3/13/20123/14/20123/17/20126To be distributedMake-up Lab for.
Experiment 17 Two Differentiators Circuit. Analog Computing Analog computers – First were mechanical systems. Electrical analog computers were developed.
LANDESK SOFTWARE CONFIDENTIAL Tips and Tricks with Filters Jenny Lardh.
Velleman Oscilloscope: Windows 7 by Mr. David Fritz.
Vibrationdata 1 Unit 6a The Fourier Transform. Vibrationdata 2 Courtesy of Professor Alan M. Nathan, University of Illinois at Urbana-Champaign.
Modeling of Power Converters using Matlab and Simulink
Electronic workshop Dr. Imtiaz Hussain URL :
SUNY-New Paltz Computer Simulation Lab Electrical and Computer Engineering Department SUNY – New Paltz “Lecture 12”
Experiment 10: Inverting Amplifier With Modifications that Require the Use of the Velleman Oscilloscope.
Phasors and Kirchhoff’s Current Law
Oscillator & Oscilloscope, Hearing Includes Lab 1 and Lab 3.
Bryce Hutchinson & Sumit Verma
Instructional/6-8/General Session 1 of 1 Get Going with eChalk Digital File Locker.
Info Read SEGY Wavelet estimation New Project Correlate near offset far offset Display Well Tie Elog Strata Geoview Hampson-Russell References Create New.
Week 4: Experiment 24 Using Nodal or Mesh Analysis to Solve AC Circuits with an addition of Equivalent Impedance.
Development of a Readout Scheme for High Frequency Gravitational Waves Jared Markowitz Mentors: Rick Savage Paul Schwinberg.
The Function Generator and the Oscilloscope Dr. Len Trombetta and Dr. Dave Shattuck 1 ECE 2100.
BEST Robotic, Inc. MATLAB/Simulink Team Training
National Mathematics Day
MODULE 2: Circuits, Signals and the Analog Discovery Board SUMMER CHALLENGE Electrical Engineering: Smart Lighting Michael Rahaim, PhD Candidate Multimedia.
Week 9: Series RC Circuit
Net 222: Communications and networks fundamentals (Practical Part)
Net 222: Communications and networks fundamentals (Practical Part)
Lab 6 Part II Instructions
Week 4: Experiment 24 Using Nodal or Mesh Analysis to Solve AC Circuits with an addition of Equivalent Impedance.
Presentation transcript:

Interface between Velleman PCSGU250 and MATLAB Week 0 Interface between Velleman PCSGU250 and MATLAB

MATLAB Interface for Velleman Scope Download MATLAB Support Package Follow the instructions in the README file after you unzip the package.   There are a few example programs in the support package, which more or less work.  I have found that they work reasonably well on a Dell laptop, but one of which did not run properly as-written on my Fujitsu tablet . 

m files In MATLAB Support Package are several program that can be used to export library files, used by the Velleman function generator, and to import data from Channel 1 and 2 of the Velleman scope. getScopeData.m makeSampleLibs.m seeGeneratorOutput.m

makeSampleLibs.m Creates two library files AM Wave.lib will cause the function generator to output a signal that is the combination of two sine waves. The frequency of one sine wave is at whatever frequency you have selected on the Velleman function generator and the other is at 20 time this frequency. Noisy Sine.lib will add random noise to a sine wave. Note that everyone will create a slightly different Noisy Sine.lib using this function. These .lib files are saved in Velleman directory, which is created by the MATLAB program. You will have to copy them to the LIB directory in the correct directory associated with PcLab2000LT

getScopeData.m You start the scope and function generator and measure the data as normal.  Then run the MATLAB file getScopeData.m. Data will be imported into two vectors, data1 for the Channel 1 and data2 for Channel 2. Plots of the data will be displayed in MATLAB.  For some reason, the scope will turned off after the data has been imported (at least with my computer).  I am still reviewing the functions that MATLAB wrote to interface to the scope and haven’t figured out why as of yet. 

seeGeneratorOutput.m You should have the Velleman oscilloscope connected to your computer and configured to make a measurement on Channel 1. You do not have to launch Velleman PcLab2000LT. The MATLAB program creates a half wave rectified sine wave lib file and plots it, then starts up the scope and function generator on the PCSGU250, Collects the data from the oscilloscope (which should be the function generator output), and plots it on the same plot. This should match up (roughly) with the original lib file plot.

New lib File As part of the Week 1 assignment, you will modify makeSampleLibs.m to write a library file that will cause the function generator to output three sinusoidal signals at once. Note that 4096 data points in the vector is one full cycle of the fundamental sine wave sin(2pfo) + sin(4pfo) + sin(8pfo) Call the new library file Three Sines.lib

Adding a new library file Import into the Velleman PcLab2000LT LIB directory on your computer. Launch PcLab2000LT. Click MORE FUNC. Click LIB in the pop-up window Select Three Sines.lib from the list of files that are then displayed.

Collecting Data Set the frequency fo to 10 kHz and the peak-to-peak amplitude to 2V. Connect Channel 1 to function generator output. Save a screen capture of the function generator output as measured using the Velleman oscilloscope program Using getScopeData.m, collect the signal from the function generator created by your library file and save the plot.

Spectrum Analyzer Using the Spectrum Analyzer option on the Velleman scope, collect a plot that shows the three frequencies in the output of the function generator. Select the Frequency Range such that all three frequencies are on the same plot. Use a linear frequency scale Select a reasonable Zoom Save image from spectrum analyzer.

Pre-lab, Validation, and Post-validation Report No Pre-Lab report. No Validation. Two Post-Lab reports One link – upload the m file that you modified to create Three Sines.lib using the correctly labeled assignment link Second link – upload the completed report template (found on the Week 0 Module) Screen capture from Channel 1 of the Velleman scope. Screen capture from the Velleman spectrum analyzer that displays three peaks associated with the three components of Three Sines.lib. Plot from MATLAB of the Velleman oscilloscope trace. Due: 8pm on 9/8/2012