Library to control Zahner Potentiostats.
Project description
zahner_potentiostat
zahner_potentiostat is a library to control external Zahner Potentiostats like PP212, PP222, PP242 or a XPOT2.
It was developed to easily integrate external Zahner Potentiostats into Python scripts for more complex measurement tasks and for automation purposes.
The control concept is that there are different primitives which can be combined for different electrochemical measurement methods.
These primitives can all be configured differently to match the application. In the documentation in the respective function all possible configuration setter methods are listed.
The following primitives are available to compose methods with:
- Potentiostatic or galvanostatic polarization
- Open circuit voltage/potential scan
- Ramps potentiostatic or galvanostatic
- Staircase potentiostatic or galvanostatic
And as an example, the following methods were developed from the primitives:
- Charge or discharge something
- Output potentiostatic or galvanostatic profile as potentiostatic or galvanostatic polarizations or ramps
- PITT Potentiostatic Intermittent Titration Technique
- GITT Galvanostatic Intermittent Titration Technique
Additional detailed documentation of the individual commands can be found in the python modules.
The complete documentation of the individual functions can be found on the API documentation website.
:wrench: Installation
The package can be installed via pip.
pip install zahner_potentiostat
:hammer: Basic Usage
'''
Search the Zahner Potentiostat
'''
deviceSearcher = SCPIDeviceSearcher()
deviceSearcher.searchZahnerDevices()
commandSerial, dataSerial = deviceSearcher.selectDevice("35000")
'''
Connect to the Potentiostat
'''
ZahnerPP2x2 = SCPIDevice(SerialCommandInterface(commandSerial), SerialDataInterface(dataSerial))
'''
Setup measurement
'''
ZahnerPP2x2.setSamplingFrequency(25)
ZahnerPP2x2.setCoupling(COUPLING.POTENTIOSTATIC)
ZahnerPP2x2.setMaximumTimeParameter(15)
'''
Start measurement
'''
ZahnerPP2x2.setVoltageParameter(0)
ZahnerPP2x2.measurePolarization()
:book: Examples
The application of the library is shown in the example repository Zahner-Remote-Python.
:email: Haveing a question?
Send an e-mail to our support team.
:interrobang: Found a bug or missing a specific feature?
Feel free to create a new issue with a respective title and description on the the Zahner-Remote-Python repository. If you already found a solution to your problem, we would love to review your pull request!
:white_check_mark: Requirements
Programming is done with the latest python version at the time of commit.
The only mandatory library is the pySerial library. Also numpy and matplotlib are needed if you want to plot the data.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for zahner_potentiostat-1.0.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61ab8222bc13781ad800466591a4240360aea673933fa3d0f97605cef6bac716 |
|
MD5 | 97b45336dc05d41b79a6b74c824c3583 |
|
BLAKE2b-256 | 600cedcb6c5eaa52f16bdebdcef7c18330f92e935cf321f118580017a807990a |
Hashes for zahner_potentiostat-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 246e2d1f6c3d10f33e522a8921de575444f89c34a38dc6b06bce71d8809c9ab7 |
|
MD5 | 61ec04a23dbac8d988ffd5954ed77b7d |
|
BLAKE2b-256 | a418cc68fe1afa43f1b5d2887088f224cc4265d60ca58ada183459398e009e67 |