From 83457661a3ebd00be5037e722068a889d8d49167 Mon Sep 17 00:00:00 2001 From: "Matthias@Dell" Date: Tue, 27 Jun 2023 15:23:48 +0200 Subject: [PATCH] added udev rule --- 99-usbtmc.rules | 8 ++++++++ readme.md | 7 +++++++ 2 files changed, 15 insertions(+) create mode 100644 99-usbtmc.rules diff --git a/99-usbtmc.rules b/99-usbtmc.rules new file mode 100644 index 0000000..b3ba074 --- /dev/null +++ b/99-usbtmc.rules @@ -0,0 +1,8 @@ +# Rule for Keithley 2611B + +# take vendor and product id from lsusb +SUBSYSTEMS=="usb", ACTION=="add", ATTRS{idVendor}=="05e6", ATTRS{idProduct}=="2614", GROUP="usbtmc", MODE="0660" RUN+="/bin/touch /tmp/05e6-2611-connected" + +# Devices +KERNEL=="usbtmc/*", MODE="0660", GROUP="usbtmc" +KERNEL=="usbtmc[0-9]*", MODE="0660", GROUP="usbtmc" diff --git a/readme.md b/readme.md index e5755ec..f917a4b 100644 --- a/readme.md +++ b/readme.md @@ -37,3 +37,10 @@ ipython -i k_teng_interactive.py -- -*X* Substitute *X* for `-k` for keithley backend, `-a` for arduino backend or `-t` for testing backend. In the shell, run `help()` to get a list of available commands + + +## Installation +### Keithley +On linux: +Install the udev rule in `/etc/udev/rules.d/` and run `sudo udevadm control --reload` to force the usbtmc driver to be used with the Keithley SMU. +The `ATTRS{product_id} ` needs to match the id shown by `lsusb`.