Skip to content

Python interface for DC power supply GPD-3303S

License

Notifications You must be signed in to change notification settings

dflachsqi2/PyGPD3303S

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPDX303S

Python interface for GPD-x303S power supplies by GW Instek

Requirements

  • PySerial
  • rich (optional)

Installation

Clone this repo and

$ git clone https://github.com/dflachsqi2/PyGPD3303S.git
$ cd PyGPD3303S
$ pip3 install .    
# or python3 setup.py install
# this isn't in pypi so
# pip install gpdx303s

Example

>>> import gpdx303s
>>> gpd = gpdx303s.GPDX303S()
>>> gpd.open('/dev/ttyUSB0') # Open the device
>>> gpd.setVoltage(1, 1.234) # Set the voltage of channel 1 to 1.234 (V)
>>> gpd.enableOutput(True) # Output ON
>>> v = gpd.getVoltageOutput(1) # read the actual voltage

About

Python interface for DC power supply GPD-3303S

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%