/MScope

MATLAB Sound card Oscilloscope (2020a, OOP)

Primary LanguageMATLABMIT LicenseMIT

MScope

MScope - MATLAB Sound card Oscilloscope

Run this app with start.m or download Windows executable from HERE

  1. Modes
  2. Settings
  3. Class Diagram
  4. Screenshots

1. Modes

  • Audio Recorder
    • free solution
    • not good for long recordings, memory is cummulated
  • Audio Device Reader
    • paid Audio Toolbox required, if running from MATLAB
    • recommended, memory is managed very well
  • Simulation
    • simple timer based software function generation

2. Settings

When using audio recording, you need to enter correct Vmax value. This is the max voltage input level, equivalent to highest bit value, when signal is not saturated. You can look it up in your soundcard specs, for example mine (RME Babyface Pro) has this written in technical reference:

Maximum input level @+4 dBu, Gain 0 dB: +13 dBu

You are concerned about the last value, +13 dBu, which you need to convert from decibel units to volts, for instance with this lookup chart

3. Class Diagram

Download

4. Screenshots

  • Sine 1123 Hz - signal:
    Download

  • Sine 1123 Hz - FFT:
    Download

  • Sine 1123 Hz - FFT zoomed:
    Download

  • Square 1123 Hz - signal:
    Download

  • Square 1123 Hz - signal 2:
    Download

  • Square 1123 Hz - FFT:
    Download

  • Triangle 1123 Hz - signal:
    Download

  • Triangle 1123 Hz - FFT:
    Download

  • Sine 20273 Hz - signal:
    Download

  • Sine 20273 Hz - FFT:
    Download

  • Sound card - RME Babyface Pro:
    Download

  • Signal source - ancient DIY analog function generator:
    Download