Giter Club home page Giter Club logo

psg9080_arb's Introduction

PSG9080_ARB

Arbitrary wave download/upload command line utility for PSG9080 signal generator

PSG9080

Install

Installation and configuration is not required, just unzip archive and run it.

Usage

  1. Connect PSG9080 signal generator to USB and power on
  2. In case of needs install CH340 drivers
  3. Run command line tool

Download arbitrary wave number 1 from a PSG9080 to the file:

PSG9080_ARB.exe COM3 -read 1 wave01.txt

Upload arbitrary wave number 1 from a file to the PSG9080:

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)

How to run on Linux

In order to run the tool on Linux OS, you're needs to install mono. Then you can run the tool the same as on Windows, just add "mono" before command.

For example:

mono PSG9080_ARB.exe /dev/ttyUSB2 -read 1 wave01.txt
mono PSG9080_ARB.exe /dev/ttyUSB2 -write 1 wave01.txt

Note

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.

Download arbitrary wave number 1 from a PSG9080 to the file in 16-bit format:

PSG9080_ARB.exe COM3 -read16 1 wave01.txt

Upload arbitrary wave number 1 from a file in 16-bit format to the PSG9080:

PSG9080_ARB.exe COM3 -write16 1 wave01.txt

Remarks

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.

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.