Programmable signal generator

From sigrok
Revision as of 03:10, 23 August 2020 by Tjko (talk | contribs) (Created page with " *** DRAFT *** This page documents the config keys are various other info needed to write a libsigrok frontend for controlling programmable signal generators (or arbitrary wa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
*** DRAFT ***

This page documents the config keys are various other info needed to write a libsigrok frontend for controlling programmable signal generators (or arbitrary waveform generators).

TODO

  • Some way to cleanly implement frequency counter device in same driver...


Notes

It is common for different signal modes (sine, square, pulse, ...) have different limits.


Config keys

A libsigrok driver for a programmable signal generator implements all or some subset of the following config keys.

SR_CONF_SIGNAL_GENERATOR

Denotes a device that provides programmable signal output via one or more output channels, typically with frequency, amplitude, offset, and phase set via the sigrok driver.

SR_CONF_OUTPUT_FREQUENCY

  • double, representing frequency of output signal
  • get: The current output frequency.
  • set: Set the target output frequency.
  • list: Supported frequency range as (low, high, step). NOTE! This can change if channel mode is changed.

SR_CONF_AMPLITUDE

  • double, representing output signal amplitude (Vpp)
  • get: The current output signal amplitude.
  • set: Set the output signal amplitude.
  • list: Supported amplitude range as (low, high, step).