Skip to content

tollsimy/BodePlotter

Repository files navigation

BodePlotter

Simple "electrician's made" (joking) Python Bode Plotter, useful to fast check Magnitude and Phase of a transfer function.
Don't judge my code, i'm not @notfilippo (FR-ATM).

How to install BodePlotter

Tested on Python 3.8.10.
If you are running Windows or Linux simply move to the BodePlotter directory and lauch:

pip install -r requirements.txt

For MacOS you also need to launch:

brew install python-tk

How to start the plotter

Move to the BodePlotter directory and lauch:

python main.py

or if you are running Windows start BodePlotter.bat

How to use the plotter

Click on the "Change H(jw)" button and insert the function that you want to plot.

screen.
Insert Static Gain (left box), Numerator and Denominator (top right and bottom right boxes).

Rules:

  • Imaginary number must be written in the form "aj" with "j" after the number and not multiplicated with asterisk "*" and with "a" integer.
    You can always write "1j*(1/2)" if you want float number.
  • Variables are "s" (s=jw), "w" (w=2pif) and "f" and apart from "s" (s=Jw) they must be multiplicated with asterisk "*".
    (e.g. "2s*(f**2)", "1j*2*f")
  • Allowed operations are sum "+", subtraction "-", multiplication "*", division "/" and power "**". Brackets "(", ")" are also allowed.

About

Simple electrician's made Python Bode Plotter.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published