EEVblog Electronics Community Forum
Products => Test Equipment => Topic started by: ptype on July 27, 2020, 03:27:20 pm
-
I put together a Python library to simplify communications and work around firmware bugs.
http://github.com/mattwach/fygen (http://github.com/mattwach/fygen)
It has the following features:
- Free and Open source
- Comprehensive support (custom waveforms, measurements, etc)
- High level and low level access methods.
- Supports both Python 2 and Python 3
- Unit tested, Lint Clean
- Supports most OSes (Linux, Windows, Mac)
- Usage documentation and many examples are provided
Example usage:
import fygen
fy = fygen.FYGen()
fy.set(channel=fygen.CH1, enable=True, wave='sin', freq_hz=10000)
fy.set(channel=fygen.CH2, enable=True, wave='square', freq_hz=20000)
(http://raw.githubusercontent.com/mattwach/fygen/master/pics/example.jpg)
You can also make a kitty:
(http://raw.githubusercontent.com/mattwach/fygen/master/pics/kitty.jpg)
Or some PI:
(http://raw.githubusercontent.com/mattwach/fygen/master/pics/pi.jpg)
I hope some of you find it useful!
-
Hi!
I just played around with this today and seems to work fine!
As I've been trying to automate some stuff around my lab, I was looking into writing a control system for this frequency generator myself, but I think yours does everything I needed and them some!
Great work, and thanks for sharing.
-
That's good to hear! Thanks for the feedback :-+
-
I have been struggling with this, just trying to get Python to talk to the FY6800 at all. |O Then I found your library and it worked really easily. :clap:
The number of variations of commands, formats, parameters etc is so great that you can spend forever, getting nowhere when starting from scratch. Then a light at the end of the tunnel as the generator springs into life, and you know the hardware works. Phew. :-+
I found and fixed the couple of bugs in my few lines of Python just for completeness, but clearly your library is so good, why use anything else. :phew:
“Thanks” seems an inadequate acknowledgement. Your library is really appreciated. ^-^