added udev rule

This commit is contained in:
Matthias@Dell 2023-06-27 15:23:48 +02:00
parent 292ca9c918
commit 83457661a3
2 changed files with 15 additions and 0 deletions

8
99-usbtmc.rules Normal file
View File

@ -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"

View File

@ -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. 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 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`.