Automated SCPI Control Software from Circuit Specialists

One of the great things about many of the programmable power supplies and electronic loads sold at CircuitSpecialists.com is that they can be controlled remotely via a PC.  This allows a user to make adjustments to the test equipment without having to access the front panel.  Though this feature opens up possibilities for end users it can be daunting to learn how to program them as needed.  Since the introduction of programmable test equipment we’ve had many end users request assistance with writing SCPI software to help them with remote control and automatic running of specific steps.  We’ve worked hard to support those customers on a case by case basis since introducing programmable power supplies and programmable dc electronic loads.  We’re happy to announce a new open-source automated test equipment software developed by our engineer Jake that simplifies the SCPI remote control process for all users.  This program developed in Python looks at the existing SCPI command libraries for each piece of test equipment and creates a universal set of controls that works with the programmable test equipment we sell making remote control much easier for end-users.  This program also has auto-detection for certain types of test equipment so it will automatically determine what port is activated and the type of test equipment that is connected to your computer.

All of the code for the program is available on the GitHub page here.  So far the program has been tested using the Array 3721A, the CSI305DB, the PPS2116A, and the brand new 0-300V, 0-0.4A PPS3E004.

To get a better summary of the program features and future plans you can view the Read Me file on Github or see below:

  • Autodetect test equipment on COM bus
  • Run gui.py from Command Line (requires Python installation on your computer, tested with Windows)
  • Manual control of voltage, current (future plan CP constant power)
  • Run predefined CSV with timing and power, voltage, current specifications (auto_run_ps for power supply, auto_run_el for elec load)
  • Log results of testing in CSV file (delete contents in this file prior to starting tests)
  • Control based on model’s specific library
  • GUI and graphs of voltage, amperage, power

You can find instructions for running the program on our GitHub Page or below are the steps:

  1. Download Python
  2. Pull down the zip file from our GitHub containing all the files required for the open-source automated test equipment software here. Extract the contents of the zip folder to your desktop.
  3. Connect your test equipment to one of the connection ports on your computer
  4. Run the program gui.py
  5. Begin controlling your equipment, either manually or via an autorun program.  If using an autorun program or logging – be sure to follow the header format and use the filename equal to the existing CSV’s in the library (note: output = 1 powers the PS or Elec Load on, output =0 powers off)
Open Source Automated Test Equipment Software
Autorun CSV file example

If you’re interested in supporting this open-source automated test equipment software project or if you have questions you can contact us at services@circuitspecialists.com.  We’d love to hear from you with feedback or any bugs you encounter.

Open Source Automated Test Equipment Software

Autoblog file data sample

*Note the software has only been tested with 4 instruments to date.  Additional devices will be tested and incorporated.  The program will still attempt control of instruments that don’t exist in the program library, users should verify functionality on the test equipment front panel.

Circuit Specialists

Circuit Specialists has provided quality test equipment, components, and accessories for over forty years.

Leave a Reply