Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add driver for UF200R wafer probing machine #2402

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from
Empty file.
39 changes: 39 additions & 0 deletions qcodes/instrument_drivers/Accretech/uf200r.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
"""
This file holds the QCoDeS driver for the Accretech UF200R Wafer probing
machine, colloquially known as the "autoprober"
"""

from typing import Any

from qcodes.instrument.visa import VisaInstrument


class UF200R(VisaInstrument):
"""
The class that is the QCoDeS driver for the Accretech UF200R Wafer probing
machine
"""

def __init__(self, name: str, address: str, **kwargs: Any):
super().__init__(name=name, address=address, **kwargs)

self.add_parameter(
name="chuck",
label="Chuck status",
val_mapping={"Z DOWN": "D",
"Z UP": "Z"},
set_cmd=self._set_chuck
)

def _set_chuck(self, target: str) -> None:

expected_stb: int = {"Z": 67, "D": 68}[target]

self.write(target)
stb: int = self.visa_handle.read_stb()

if expected_stb != stb:
raise RuntimeError(
f'Could not reach desired state: {target}. '
f'Expected status byte {expected_stb}, but got {stb}.'
)