This version (06 Jun 2018 13:42) was approved by Alexandra.The Previously approved version (11 Aug 2017 15:46) is available.Diff

Scopy Signal Generator

General Description

The signal generator instrument can be used to generate analog output from the M2K with user configurable parameters. It consists of 3 parts:

  • Channel selector - enable/disable channels as well as each channel's control panel.
  • Signal Plot - visual representation of the signals
  • Control Panel - change signal paramteres

Four types of signals can be generated.

  • Constant - DC signal at a user selectable amplitude
  • Waveform - AC signal with various customizable parameters
  • Buffer - signal is imported from a file
  • Math - signal is defined by a mathematical equation

Constant signal only has one parameter which inputs the amplitude of the signal Waveform signal type can be one of the following

  • Sine
  • Square
  • Triangle
  • Trapezoidal
  • Rising sawtooth
  • Falling sawtooth

All signals have amplitude, offset, phase and frequency parameters. Selecting Square wave will also unlock the duty cycle parameter. Selecting trapezoidal waveform will disable the frequency, as this parameter will be computed from the other 4 values in the Timing category (Rise time, High time, Fall time, Low Time)

Buffer signal type takes a file as an input. The supported file types for buffered signals are:

  • .bin - 32 bit binary float format
  • .wav - Waveform Audio File Format (16 bit integers)
  • .csv - Comma separated values
  • .mat - MATLAB Mat format

CSV file format supports raw CSVs such as, as well as Scopy formatted CSVs such as This means it is possible to acquire a signal in the oscilloscope and play it back in the signal generator. MAT file format only supports arrays of type real (no complex waveforms)

Math signal type allows generation of a signal that is defined as a math equation. .

On top of all the signals noise can be added. By selecting None, no noise is added to the signal. The rest of the noise types are:

  • Uniform
  • Gaussian
  • Laplacian
  • Impulse

Use cases

Create loopback between CH1 and CH2 of the oscilloscope and the signal generator

Run a single channel

Click to display ⇲

Click to hide ⇱

  1. Disable channel 2
  2. Select sine wave with 5V amplitude and 10kHz
  3. Run the signal generator
  4. Monitor oscilloscope

Run both channels

Click to display ⇲

Click to hide ⇱

  1. Continue from previous testcase
  2. Enable channel 2 and select triangle wave with 5V amplitude and 20kHz
  3. Add gaussian noise with 1V amplitude
  4. Monitor oscilloscope

Generate square waveform

Click to display ⇲

Click to hide ⇱

  1. Select square wave with 25% dutycycle
  2. Decrease noise amplitude to 200mV
  3. Monitor oscilloscope

Generate trapezoidal waveform

Click to display ⇲

Click to hide ⇱

  1. Select trapezoidal waveform with 1ms rise/up/fall/low times
  2. Monitor oscilloscope

Generate waveform from wav file

Click to display ⇲

Click to hide ⇱

  1. Select buffer mode and select a wavefile. One can usually find a suitable wavefile in C:\Windows\Media
  2. Signal generator automatically selects appropriate sample rate
  3. Monitor oscilloscope (if possible connect a speaker to the channel that is outputted)

Generate stairstep waveform

Click to display ⇲

Click to hide ⇱

  1. Select the stairstep csv file provided above
  2. Remove noise, disable CH1 and increase amplitude to 5V
  3. Monitor oscilloscope

Generate waveform from math function

Click to display ⇲

Click to hide ⇱

  1. Select Math mode and input a function sucha s 2*(cos(6*t)*sin(2*t))
  2. Monitor oscilloscope

Return to Scopy Main Page

university/tools/m2k/scopy/siggen.txt · Last modified: 16 May 2018 16:39 by ASuciu