EEVblog Electronics Community Forum

Products => Test Equipment => Topic started by: ptype on July 27, 2020, 03:27:20 pm

Title: Python Library For Feeltech Signal Generators (FY2300, FY6600, FY6800, FY6900)
Post 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:


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!
Title: Re: Python Library For Feeltech Signal Generators (FY2300, FY6600, FY6800, FY6900)
Post by: battlecoder on November 04, 2020, 03:30:37 am
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.
Title: Re: Python Library For Feeltech Signal Generators (FY2300, FY6600, FY6800, FY6900)
Post by: ptype on November 04, 2020, 05:21:48 pm
That's good to hear!  Thanks for the feedback  :-+
Title: Re: Python Library For Feeltech Signal Generators (FY2300, FY6600, FY6800, FY6900)
Post by: Lesolee on February 13, 2023, 08:15:10 pm
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. ^-^