Thales-Remote-Python is a Python extension which uses the Zahner Remote2 to control Zahner Zennium Potentiostats.
It was developed to easily integrate Zahner Zennium Potentiostats into Python scripts for more complex measurement tasks and for automation purposes.
The Python extension will be extended in the future with all functions of the Remote2.
With an integrated development environment, for example Eclipse with PyDev extension, the package must be added to the project. ThalesRemote can either be simply downloaded or best pulled with Git from the GitHub repository. With GitHub integration into the project, updates can be easily done. If you are using Eclipse you can use the extension EGit for this.
Download the folder ThalesRemote and add it to the PYTHONPATH to access the library from Python.
'''
Connect to the Zahner Zennium Potentiostat
'''
ZenniumConnection = ThalesRemoteConnection()
ZenniumConnection.connectToTerm("localhost", "ScriptRemote")
ZahnerZennium = ThalesRemoteScriptWrapper(ZenniumConnection)
ZahnerZennium.forceThalesIntoRemoteScript()
'''
Read the currently measured voltage and current.
'''
print("Potential: " + str(ZahnerZennium.getPotential()))
print("Current: " + str(ZahnerZennium.getCurrent()))
'''
Single frequency impedance measurement at 1 V DC and 2 kHz
with 10mV amplitude for 3 periods.
'''
ZahnerZennium.setPotentiostatMode(PotentiostatMode.POTMODE_POTENTIOSTATIC)
ZahnerZennium.setPotential(1)
ZahnerZennium.enablePotentiostat()
ZahnerZennium.setFrequency(2000)
ZahnerZennium.setAmplitude(10e-3)
ZahnerZennium.setNumberOfPeriods(3)
ZahnerZennium.getImpedance()
ZahnerZennium.enablePotentiostat(False)Complete detailed examples can be found in the main directory.
Send an e-mail to our support team.
Feel free to create a new issue with a respective title and description on the the Thales-Remote-Python repository. If you already found a solution to your problem, we would love to review your pull request!
The library was developed with python 3.9 using only standard libraries.
It was tested with Python 3.9 and 3.8.5.
Copyright 2020 ZAHNER-elektrik I. Zahner-Schiller GmbH & Co. KG
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.