Skip to content

A simple collection of rather crude CLI utilities to talk with specific lab devices using SCPI over Ethernet

License

Notifications You must be signed in to change notification settings

tspspi/rawsockscpitools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Raw socket SCPI tools

This is a small collection of CLI tools using standard Berkeley sockets to communicate with laboratory equipment using SCPI. These tools only support a small subset of SCPI and the device commands - and do not provide any device family abstraction or device abstraction layer like libscpi. These tools have been written as a quick hack to play around with SCPI, test how commands work and solve some specific scriptable problems.

License

These utilities are open source and licensed under a 4 clause BSD license. See LICENSE.md

Compiling

Use gnu make. Depending on your system this means either

gmake

or

make

Supported devices

  • Oscilloscopes
    • RIGOL MSO5072
  • Signal generators
    • SIGLENT SSG3021X
  • Signal analyzers
    • SIGLENT SSA3021X

Mini CLI tools / examples

The following CLI tools are supplied along with the libraries to allow fast scripting of simple tasks. For more complex tasks one should use the library directly. These CLI tools also serve as examples on how to use the API.

  • RIGOL MSO5072
    • rigolmso5000_idn queries the identity string and serial number
    • rigolmso5000_querywaveform queries the waveform from a selected channel into an ASCII data file using the currently selected settings
  • SIGLENT SSG3021X
    • siglentssg3021x_idn queries the identity string and serial number
    • siglentssg3021x_rfonoff enables or disables the RF output
    • siglentssg3021x_setfrq sets the frequency (in Hz) on the RF output
    • siglentssg3021x_setpow sets the power (in dBm) on the RF output
  • SIGLENT SSA3021X
    • siglentssa3021x_idn queries the identity string and serial number

About

A simple collection of rather crude CLI utilities to talk with specific lab devices using SCPI over Ethernet

Topics

Resources

License

Stars

Watchers

Forks