Skip to content

Library to control Zahner power potentiostats (PP2x2, EL1002, XPOT2) of the latest generation with Python.

License

Notifications You must be signed in to change notification settings

Zahner-elektrik/zahner_potentiostat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zahner_potentiostat

zahner_potentiostat is a library to control external Zahner Potentiostats like PP212, PP222, PP242, XPOT2 or EL1002.

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 complete documentation of the functions can be found on the API documentation website.

Note

Only with this library and a PP212, PP222, PP242, EL1002 or XPOT2 device you can not use AC methods. For AC methods like EIS a Zennium with EPC and the thales_remote library is necessary.

The following primitives are available to compose methods with:

And as an example, the following methods were developed from the primitives:

Further measurements like EIS and CV can be done in connection with a Zennium with the package thales_remote.

🔧 Installation

The package can be installed via pip.

pip install zahner_potentiostat

🔨 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()

📖 Examples

The application of the library is shown in the example repository Zahner-Remote-Python.

📧 Having a question?

Send an e-mail to our support team.

⁉️ 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!

✅ 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.