Arbitrary wave download/upload command line utility for PSG9080 signal generator
Installation and configuration is not required, just unzip archive and run it.
- Connect PSG9080 signal generator to USB and power on
- In case of needs install CH340 drivers
- Run command line tool
PSG9080_ARB.exe COM3 -read 1 wave01.txt
PSG9080_ARB.exe COM3 -write 1 wave01.txt
where:
COM3 - usb/serial port of PSG9080 signal generator (you can find it on the system Device Manager under "Ports (COM and LPT) entry")
1 - arbitrary wave number
wave01.txt - text filename to save or load arbitrary wave (it should consists of 8192 lines with decimal values)
$ sudo apt install mono-runtime mono-mcs
$ git clone https://github.com/qrp73/PSG9080_ARB.git
$ cd PSG9080_ARB
$ mkdir build && cd build
$ cmake ..
$ make
$ sudo make install
Test read waveform 01:
$ psg9080_arb /dev/ttyUSB0 -read 1 wave01.txt
Model: PSG9080
S/N: 2090800***
Hardware: v1.20
Firmware: v1.20
FPGA: v1.20
8192 samples downloaded
8192 samples written into the file
$ ls
PSG9080_ARB.exe wave01.txt
read and write commands upload and download wave as is in 14 bit integer format. The file should consists of 8192 text lines with text representation of number from 0 to 16383
Original software use a little different format. It strore values in 16 bit integer format and convert it during upload procedure. Such conversion don't allows user to control data precisely. This is why I'm using 14 bit data format by default. My tool upload data as is with no conversion and no scale.
In order to support arbitrary wave files from original software I added two additional commands: read16 and write16.
PSG9080_ARB.exe COM3 -read16 1 wave01.txt
PSG9080_ARB.exe COM3 -write16 1 wave01.txt
The source code also includes the code for the firmware upgrade command, but this command is disabled in the source code and you will be unable to use it by default, because I never tested it on the real device. It was tested on simulator and I don't know if it works on the real device. Do not use this command because upgrage command may fails and you can brick your device.
