Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>PyAMS - Python for Analog and Mixed SignalsNew to Visual Studio Code? Get it now.
PyAMS - Python for Analog and Mixed Signals

PyAMS - Python for Analog and Mixed Signals

Dhiabi fathi

|
3 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Welcome to the PyAMS documentation

PyPI version Supported Python versions License

What is PyAMS?

PyAMS (Python for Analog and Mixed Signals) is a Python library for modeling and simulating analog and mixed-signal electronic circuits. It provides:

  • The ability to create custom models of electronic components.
  • Simulation of circuits in different modes of operation: DC, transient (TR) and AC.
  • Visualization of the results with matplotlib in Python, or with Plotly in the CAD system.
  • Compatibility with Python 3+ and PyPy, on Linux, Windows and macOS.
  • Circuit design (schematic capture, symbol design and simulation) in a CAD environment, using either:
    1. VS Code, with the PyAMS extension.
    2. The PyAMS software: pyams.sf.net

What’s New

v0.7.0 (Current)

Added

  • Probes with live values and operating point: during the live simulation a probe shows the changing value of its signal (R1.I=2.1mA, or 0/1 for a digital signal). The new OP ▶ button of the probe runs the DC operating point and writes the value of every probe (R1.I=215.1µA, Out1=5.2V).
  • Popup menu of the schematic: right-click gives Cut, Copy, Paste (enabled or disabled according to the selection and the clipboard) and, with a single symbol selected, Rotate, Flip Vertical and Flip Horizontal.

Changed

  • Copy / Paste: the pasted items follow the mouse pointer on the grid until you click (Esc or right-click cancels). Pasted items are always placed on the grid (multiples of 5), and a pasted symbol whose reference already exists gets the next free one (R1 → R3).
  • New probe look: dark rounded box with the value in monospace (green for voltage, amber for current) and a very thin dashed line to the signal.

Fixed

  • Wires follow symbols: rotating, flipping or moving a symbol no longer detaches its wires, including wires joined to the middle of another wire.
  • Probe Select signal: lists the signals of your real circuit and joins the probe to the signal with a dashed line.
  • Select Model dialog: no longer stays on Loading models… when the opened folder is very large.

v0.6.0

Added

  • Digital design and logic waveforms: a logic waveform viewer in the Time Domain analysis (digital signals shown from the Y axe outputs), a new Digital symbol category (clock, gates NOT / AND / OR / NAND / NOR / XOR / XNOR, 3-input gates, latches, flip-flops, counter, registers, shift register, LFSR, multiplexers, adders...) and the models AND3, OR3, NAND3, NOR3.
  • Buses: a wire or pin named D[0:7] is a bus of 8 lines. Drawing, width check between pins and wires, and the generated netlist (list of nodes) are supported.
  • Mixed-signal converters: ADC / DAC symbols and the models ADC_analog, DAC_analog, ADC_clocked, DAC_clocked, with an 8-bit ADC, bus and DAC demo.
  • New symbols: Timer 555, Comparator, and LEDs (Red, Green, Blue, Yellow) with the LED model.
  • Symbol editor: new Closed path tool (filled polygon with curved segments).
  • Wire name label: Show name option in the wire properties.
  • New demos: astable 555, comparator with hysteresis, relaxation oscillator, Hartley and Colpitts oscillators, logic gates with switches and LEDs (live), 8-bit ADC and DAC with a bus.

Changed

  • Panels: List of elements and Live simulation open at the top left like Symbols library; Properties stays on the right. Better panel widths, and the symbols library height follows the window.
  • Live simulation: Step and Speed are saved in the circuit file.

Fixed

  • Copy / Cut / Paste: the context-menu items now work, and copying inside a text box (dialogs, Explorer rename) no longer copies the circuit.
  • Selection box and pin names: the box of parts containing arcs (XOR, XNOR) and its margins are symmetric; pin names are placed correctly.
  • Junction dots follow the z-order of the wires.

v0.5.0

Added

  • Switches and relays: manual switches (SPST, SPDT), voltage- and current-controlled switches (Switch, SwitchV, SwitchI) and relays (SPST, SPDT) with their symbols and models. The switch widgets have a Line width property.
  • New symbols: Zener Diode, Tunnel Diode and Diode Bridge (the DiodeBridge model is built with the new subcircuit()).
  • New demos: RC charge / discharge with SPDT and SPST switches (live), a full-wave bridge rectifier fed by a transformer (with discrete diodes and with the Diode Bridge), Zener DC sweep and clipper, and two tunnel diode oscillators. Each demo has a detailed HTML note.

Changed

  • Better wire (net) editing:
    • Moving a part keeps its wires attached to the pins; a wire that is no longer straight is broken into horizontal / vertical segments.
    • A dragged wire point never leaves a diagonal segment.
    • Two wires that meet end to end become one wire.
    • Junction dots are drawn where a branch really leaves the other wire, and take the colour of the wire.
    • Esc or the right mouse button ends the wire being drawn, and the wire tool stays active for the next wire.

Fixed

  • Live simulation of digital models (relays, gates, flip-flops, counters): the digital part was never stepped, so a digital model did not change state.
  • A simulation could fail at start when the opened folder contained a Python installation or a copy of installed packages (numpy, scipy, compiled .pyd files).

v0.4.0

Added

  • Live simulation: run a circuit with Python while you operate it. Switches, push buttons, sliders and rotary knobs change model parameters; LEDs, 7-segments, gauges, bars, value displays, polygon segments and scopes show the results. Step and speed (real time) are adjustable, with Pause and Reset.
  • Live widgets drawn in the symbol editor and bound to a parameter, signal or pin of the model, including SPST / SPDT / push switches and the automatic switch and automatic transfer switch for relay circuits.
  • Optional def live(self) in a model, called after every accepted step to write output parameters for the widgets.
  • Demos in demo/live/: Live Demo and Relay Circuit.

v0.3.1

  1. Updated PyAMS extension for VS Code.
  2. Updated PyAMS software (pyams.sf.net).
  3. Updated PyAMS library.
  4. Updated PyAMS models.
  5. Documentation Enhancements: Updated the official documentation (Read the Docs).

Added

  • Added new demo circuits: half-wave rectifier, common-emitter amplifier, inverting amplifier, DIAC Relaxation Oscillator, and RLC Band-Pass Filter.
  • Added support for rendering math formulas in HTML notes using KaTeX (fully functional offline under webview CSP).
  • Added project .sym files to the symbols panel list (appended after library models, named "Project" or "Project/sub...").
  • Added automatic inclusion of project folders containing .py files to PYTHONPATH when running a circuit.

Changed

  • Major Architecture Change: All analyses now run exclusively through the native PyAMS engine.
  • "PyAMS Circuit" across the user interface.
  • Updated DC operating point analysis to use native PyAMS methods (startPyAMSOp/stopPyAMSOp), removing legacy parseSpiceResults_ and execOp functions.
  • Updated drawing area and grid colors to align with the new PyAMS logo.
  • Improved the HTML editor and optimized HTML notes to display as thumbnails with Home zoom.
  • Standardized time unit labels on schematics (e.g., "Sec", "sec", "seconds" are now uniformly displayed as "s").

Fixed

  • Fixed an issue where project models were not found when the project directory was located inside the extension folder.
  • Fixed symbol linking in the "Select Model" dialog to correctly preserve the origin of chosen project models and generate accurate import statements (e.g., from MyResistor import MyResistor).
  • Fixed a missing break statement in OPCheck within the properties dialog.

Key Features

  • Graphical Schematic Designer: Intuitive interface for drawing and designing circuit schematics.
  • Advanced Simulation Engine: Powered by pyams.lib for accurate analog and mixed-signal circuit simulations (DC, AC, Transient, digital and mixed-signal).
  • Interactive Waveform Viewer: Visualize and analyze simulation results with an interactive graph viewer, featuring PNG export capabilities and a logic waveform viewer for digital signals.
  • Extensive Component Library: Includes a wide range of pyams.models (BJT, MOSFET, JFET, Diodes, OP-AMPs, and more).
  • Cross-Platform: Built with ElectronJS, offering a seamless experience on Windows and Linux.

Installation

  1. Open VS Code
  2. Go to Extensions (Ctrl+Shift+X)
  3. Search for "PyAMS"
  4. Click Install

Usage

  1. Open PyAMS from the Activity Bar
  2. Create a new schematic
  3. Add components from the library
  4. Run simulation and view waveform results

Requirements

  • VS Code 1.70.0 or higher

Document

  • https://pyams-lib.readthedocs.io

License

MIT License - See LICENSE file for details

Support

For issues and feature requests, please visit: https://github.com/d-fathi/PyAMS/issues

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft