Skip to content

A basic script to read the waveform from an Agilent 54621A oscilloscope via RS232 and display it using matplotlib

License

Notifications You must be signed in to change notification settings

kiwih/agilent-rs232

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

agilent-rs232

A basic script to read the waveform from an Agilent 54621A (Note: Has also been checked with 54622D) oscilloscope via RS232 and display it using matplotlib.

It can convert this:

scope

To this:

matplotlib

I wrote a blog post to go along with this! You can find it here!

Usage

The program is written in python3.

usage: agilent-rs232.py [-h] [--port PORT] [--baud BAUD] [--channel CHANNEL]
                        [--length LENGTH]

optional arguments:
  -h, --help            show this help message and exit
  --port PORT, -p PORT  set serial port (default /dev/ttyUSB0)
  --baud BAUD, -b BAUD  set serial baud rate (default 57600)
  --channel CHANNEL, -c CHANNEL
                        set probe channel (default 1)
  --length LENGTH, -l LENGTH
                        number of samples (default 1000)

Other implementations

I'm not the first person to want to solve this problem! Although I did not use their code, a more full-featured approach to reading scopes and other tools from Python can be found under the PyVisa library.

About

A basic script to read the waveform from an Agilent 54621A oscilloscope via RS232 and display it using matplotlib

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages