Git Product home page Git Product logo

skardas's Introduction

skardas

A tool for measuring the frequency response of passive or active filters and possibly other electronic circuits.

Uses the Siglent SDG10x0 function generator together with the Rigol DS1052E oscilloscope. The function generator generates a sine wave in the various frequencies, the filter is connected between them and the oscilloscope is used for measuring the response.

Installation and usage

The program supports Python 3 and requires setuptools for installation. You can install it by running ./setup.py install (which may require root) or with pip. The dependencies should be installed automatically from PyPI.

The signal generator's channel 1 should be connected to the filter's input and the filter's output should be connected to the scope's channel 1. The signal generator's sync out (on the back panel) should be connected to the scope's external trigger input. Then you can run the analysis with:

skardas start_frequency end_frequency

(substituting the appropriate frequency numbers in Hz)

Contributing

Suggestions and patches are welcome. The package can be installed in development mode with:

pip install --user -e .

Before submitting patches, check that the code passes the tests and flake8's checks. The tests can be executed using:

./setup.py test

The master branch is tested with actual instruments, while devel contains untested development.

This project is free software, licensed under LGPLv2.1 or (at your option) any later version.

TODO

  • Multiple plot interface.
    • Phase measurement.
    • Distortion measurement.
  • Perform Fourier transform of response for more robustness.
  • Upload to PyPI.

skardas's People

Contributors

kspi avatar ioch avatar

Stargazers

Marcel Ochsendorf avatar Hsuan Han Lai avatar Micah Stevens avatar Saulius Žemaitaitis avatar Albertas Mickėnas avatar Noel Maersk avatar

Watchers

 avatar James Cloos avatar

Forkers

ioch

skardas's Issues

Use sortedcontainers rather than blist for SortedList implementation

Hi, I noticed you're using the sortedlist implementation from the blist module in a few places:

  1. https://github.com/kspi/skardas/blob/master/skardas/sampled_response.py

From the source, it looks like you're using the list to add items and iterate sorted values. Consider using the sortedcontainers module in place of blist. SortedContainers is a pure-Python implementation of SortedList, SortedDict, and SortedSet types. The SortedList implementation is actually faster than the one in blist and the API is the same.

If you're interested, I'm happy to submit a pull request. Let me know.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.