Metrohm AUTOLAB control package
This is a unofficial control package to Metrohm-AUTOALB.
This package contains a main pacakge named AUTOALB()
class structure and implemented functions:
class AUTOLAB():
def __init__(self,
sdk=R"C:\Program Files\Metrohm Autolab\autolabsdk\EcoChemie.Autolab.Sdk",
adx=R"C:\Program Files\Metrohm Autolab\autolabsdk\Hardware Setup Files\Adk.x"):
def disconnectAutolab(self):
def setSDKandADX(self,sdk,adx):
def isMeasuring(self):
def connectToAutolab(self,
hdw=R"C:\Program Files\Metrohm Autolab\autolabsdk\Hardware Setup Files\PGSTAT302N\HardwareSetup.FRA32M.xml"):
def measure(self,procedure):
def save(self):
def saveAs(self,saveName):
def setCellOn(self,On=True):
def setMode(self,Mode='Potentialstatic'):
def setPotential(self,potential):
def setCurrentRange(self,EstimateCurrentInAmpere = 1E-6):
def wait(self,QuietTime=5):
how to use it:
-
Step 0, install the requirement softerware,
pip install pythonnet pip install pyMetrohmAUTOLAB
And AUTOALB SDK v1.11 You can download it here
-
Step 1, import this package
import Metrohm.AUTOLAB as EC
-
Step 2, tell Python where your instrument located
# tell the codes where your SDK install first hdw=R'C:\Program Files\Metrohm Autolab\autolabsdk\Hardware Setup Files\PGSTAT302N\HardwareSetup.FRA32M.xml', sdk=R"C:\Program Files\Metrohm Autolab\autolabsdk\EcoChemie.Autolab.Sdk" adx=R"C:\Program Files\Metrohm Autolab\autolabsdk\Hardware Setup Files\Adk.x"
-
Setp 3, initialise the AUTOLAB class(C's bad habbit)
# initializing the class first autolab = EC.AUTOLAB(sdk=sdk,adx=adx) autolab.CMD = True # optional: Enable CMDLOG or not, it's good if you want to trace the code
-
Step 4, Have fun with it
try: if autolab.connectToAutolab(hdw): # first we need to connect to our instrument print("Connecting to AUTOLAB successfully....") # do measurement autolab.measure(R"*.nox file path") # it will take times till measrement finish autolab.saveAs(R"save file name") ` except: print("Connecting to AUTOLAB FAIL....") return
-
Optional Step 5, delete the instance
It is a good habit, but not always necessary.
# it is a good habit to del the instance after script del autolab
Metadata
Release files for pyMetrohmAUTOLAB 0.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyMetrohmAUTOLAB-0.0.4.tar.gz | 6.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyMetrohmAUTOLAB-0.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.6 kB
Release files / pyMetrohmAUTOLAB-0.0.4.tar.gz
| Download URL | pyMetrohmAUTOLAB-0.0.4.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
940e3c4bedfc0073c31b3cd14ca62a0e397929c276a09931fd9d4e0928c69ee4
|
|
BLAKE2b-256 checksum How to use checksums |
13bf17235a1bbf58becfd1aabac3fc22404c5946a7bd46e9314fa4b40640549d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.8
|
Release files / pyMetrohmAUTOLAB-0.0.4-py3-none-any.whl
| Download URL | pyMetrohmAUTOLAB-0.0.4-py3-none-any.whl |
|---|---|
| Size | 7.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
95f939725cf022f9ae2a91edd0758926a42e063c132f9484a2e9c15d8213fc4e
|
|
BLAKE2b-256 checksum How to use checksums |
c30f8fa67273947d6a33c6e3587eed5a3014124fc1956af9251628173d8418e1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.8
|