zahner-potentiostat


Namezahner-potentiostat JSON
Version 1.1.0 PyPI version JSON
download
home_pagehttps://zahner.de/
SummaryLibrary to control Zahner Potentiostats.
upload_time2023-01-16 07:13:56
maintainer
docs_urlNone
authorMaximilian Krapp
requires_python>=3.9
licenseMIT
keywords potentiostat electrochemistry chemistry eis cyclic voltammetry fuel-cell battery
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # zahner_potentiostat

zahner_potentiostat is a library to control external [Zahner Potentiostats](https://zahner.de/products#external-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](https://doc.zahner.de/zahner_potentiostat/).  

**The following [primitives](https://en.wikipedia.org/wiki/Language_primitive) are available to compose methods with:**  

* Potentiostatic or galvanostatic polarization  
  * [measurePolarization()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measurePolarization)  
* Open circuit voltage/potential scan  
  * [measureOCV()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measureOCV)  
  * [measureOCVScan()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measureOCVScan)  
* Ramps potentiostatic or galvanostatic  
  * [measureRampValueInTime()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measureRampValueInTime)  
  * [measureRampValueInScanRate()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measureRampValueInScanRate)  
  * [measureRampScanRateForTime()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measureRampScanRateForTime)  
* Staircase potentiostatic or galvanostatic  
  * [measureIEStairs()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measureIEStairs)  
  
**And as an example, the following methods were developed from the primitives:**  

* Charge or discharge something  
  * [measureCharge()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measureCharge)  
  * [measureDischarge()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measureDischarge)  
* Output potentiostatic or galvanostatic profile as potentiostatic or galvanostatic polarizations or ramps  
  * [measureProfile()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measureProfile)  
* PITT Potentiostatic Intermittent Titration Technique  
  * [measurePITT()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measurePITT)  
* GITT Galvanostatic Intermittent Titration Technique  
  * [measureGITT()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measureGITT)  

Further measurements like EIS and CV can be done in connection with a Zennium with the package [thales_remote](https://github.com/Zahner-elektrik/Thales-Remote-Python).

# 🔧 Installation

The package can be installed via pip.

```
pip install zahner_potentiostat
```

# 🔨 Basic Usage

```python

'''
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](https://github.com/Zahner-elektrik/Zahner-Remote-Python).

# 📧 Haveing a question?

Send an <a href="mailto:support@zahner.de?subject=Zahner-Remote-Python Question&body=Your Message">e-mail</a> 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](https://github.com/Zahner-elektrik/Zahner-Remote-Python/issues) 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](https://pyserial.readthedocs.io/en/latest/) library. Also numpy and matplotlib are needed if you want to plot the data.

            

Raw data

            {
    "_id": null,
    "home_page": "https://zahner.de/",
    "name": "zahner-potentiostat",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "potentiostat, electrochemistry, chemistry, eis, cyclic voltammetry, fuel-cell, battery",
    "author": "Maximilian Krapp",
    "author_email": "maximilian.krapp@zahner.de",
    "download_url": "https://files.pythonhosted.org/packages/c5/cd/d5a2310b86a943776e27b6fec49935d5614ca2fb5ca09541d93ca8335a07/zahner_potentiostat-1.1.0.tar.gz",
    "platform": "any",
    "description": "# zahner_potentiostat\n\nzahner_potentiostat is a library to control external [Zahner Potentiostats](https://zahner.de/products#external-potentiostats) like **PP212, PP222, PP242, XPOT2 or EL1002**.\n\nIt was developed to **easily integrate** external Zahner Potentiostats into Python scripts for more **complex measurement** tasks and for **automation purposes**.\n\nThe control concept is that there are different primitives which can be combined for different electrochemical measurement methods.  \nThese 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](https://doc.zahner.de/zahner_potentiostat/).  \n\n**The following [primitives](https://en.wikipedia.org/wiki/Language_primitive) are available to compose methods with:**  \n\n* Potentiostatic or galvanostatic polarization  \n  * [measurePolarization()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measurePolarization)  \n* Open circuit voltage/potential scan  \n  * [measureOCV()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measureOCV)  \n  * [measureOCVScan()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measureOCVScan)  \n* Ramps potentiostatic or galvanostatic  \n  * [measureRampValueInTime()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measureRampValueInTime)  \n  * [measureRampValueInScanRate()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measureRampValueInScanRate)  \n  * [measureRampScanRateForTime()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measureRampScanRateForTime)  \n* Staircase potentiostatic or galvanostatic  \n  * [measureIEStairs()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measureIEStairs)  \n  \n**And as an example, the following methods were developed from the primitives:**  \n\n* Charge or discharge something  \n  * [measureCharge()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measureCharge)  \n  * [measureDischarge()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measureDischarge)  \n* Output potentiostatic or galvanostatic profile as potentiostatic or galvanostatic polarizations or ramps  \n  * [measureProfile()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measureProfile)  \n* PITT Potentiostatic Intermittent Titration Technique  \n  * [measurePITT()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measurePITT)  \n* GITT Galvanostatic Intermittent Titration Technique  \n  * [measureGITT()](https://doc.zahner.de/zahner_potentiostat/scpi_control/control.html#zahner_potentiostat.scpi_control.control.SCPIDevice.measureGITT)  \n\nFurther measurements like EIS and CV can be done in connection with a Zennium with the package [thales_remote](https://github.com/Zahner-elektrik/Thales-Remote-Python).\n\n# \ud83d\udd27 Installation\n\nThe package can be installed via pip.\n\n```\npip install zahner_potentiostat\n```\n\n# \ud83d\udd28 Basic Usage\n\n```python\n\n'''\nSearch the Zahner Potentiostat\n'''\ndeviceSearcher = SCPIDeviceSearcher()\ndeviceSearcher.searchZahnerDevices()\ncommandSerial, dataSerial = deviceSearcher.selectDevice(\"35000\")\n\n'''\nConnect to the Potentiostat\n'''\nZahnerPP2x2 = SCPIDevice(SerialCommandInterface(commandSerial), SerialDataInterface(dataSerial))\n\n'''\nSetup measurement\n'''\nZahnerPP2x2.setSamplingFrequency(25)\nZahnerPP2x2.setCoupling(COUPLING.POTENTIOSTATIC)\nZahnerPP2x2.setMaximumTimeParameter(15)\n\n'''\nStart measurement\n'''\nZahnerPP2x2.setVoltageParameter(0)\nZahnerPP2x2.measurePolarization()\n```\n\n# \ud83d\udcd6 Examples\n\nThe application of the library is shown in the example repository [Zahner-Remote-Python](https://github.com/Zahner-elektrik/Zahner-Remote-Python).\n\n# \ud83d\udce7 Haveing a question?\n\nSend an <a href=\"mailto:support@zahner.de?subject=Zahner-Remote-Python Question&body=Your Message\">e-mail</a> to our support team.\n\n# \u2049\ufe0f Found a bug or missing a specific feature?\n\nFeel free to **create a new issue** with a respective title and description on the the [Zahner-Remote-Python](https://github.com/Zahner-elektrik/Zahner-Remote-Python/issues) repository. If you already found a solution to your problem, **we would love to review your pull request**!\n\n# \u2705 Requirements\n\nProgramming is done with the latest python version at the time of commit.  \nThe only mandatory library is the [pySerial](https://pyserial.readthedocs.io/en/latest/) library. Also numpy and matplotlib are needed if you want to plot the data.\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Library to control Zahner Potentiostats.",
    "version": "1.1.0",
    "split_keywords": [
        "potentiostat",
        " electrochemistry",
        " chemistry",
        " eis",
        " cyclic voltammetry",
        " fuel-cell",
        " battery"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c325a127e30042606fb74d4e89f6a3650467fc7628cb22dec25a2d0cae865be0",
                "md5": "99bec8649842bf44703d5955486b1a5d",
                "sha256": "2126ed1f5976028500c0c5770088da9f1981771451995f5602eb9e700d1fd496"
            },
            "downloads": -1,
            "filename": "zahner_potentiostat-1.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "99bec8649842bf44703d5955486b1a5d",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 55953,
            "upload_time": "2023-01-16T07:13:54",
            "upload_time_iso_8601": "2023-01-16T07:13:54.842966Z",
            "url": "https://files.pythonhosted.org/packages/c3/25/a127e30042606fb74d4e89f6a3650467fc7628cb22dec25a2d0cae865be0/zahner_potentiostat-1.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c5cdd5a2310b86a943776e27b6fec49935d5614ca2fb5ca09541d93ca8335a07",
                "md5": "3c4cc655107e79afa90255c6cf0f48fb",
                "sha256": "bed068fb6d07b0ee29b3f0f3528e7de0bf0a4808941db947a8835765951502de"
            },
            "downloads": -1,
            "filename": "zahner_potentiostat-1.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "3c4cc655107e79afa90255c6cf0f48fb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 49115,
            "upload_time": "2023-01-16T07:13:56",
            "upload_time_iso_8601": "2023-01-16T07:13:56.650326Z",
            "url": "https://files.pythonhosted.org/packages/c5/cd/d5a2310b86a943776e27b6fec49935d5614ca2fb5ca09541d93ca8335a07/zahner_potentiostat-1.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-16 07:13:56",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "lcname": "zahner-potentiostat"
}
        
Elapsed time: 0.02837s