Skip to content

Commit d9dc70e

Browse files
authored
Automate CLARIOstar & Hamilton HEPA fan VID:PID Search at Runtime (#659)
1 parent b2baf27 commit d9dc70e

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

pylabrobot/only_fans/hamilton_hepa_fan_backend.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
11
import asyncio
22

3+
# Make pylibftdi scan the Hamilton HEPA Fan VID:PID
4+
# appears as ID 0856:ac11 B&B Electronics Model USOPTL4
5+
from pylibftdi import driver
6+
37
from pylabrobot.io.ftdi import FTDI
48

59
from .backend import FanBackend
610

11+
driver.USB_VID_LIST.append(0x0856) # i.e. 2134
12+
driver.USB_PID_LIST.append(0xAC11) # i.e. 44049
13+
714

815
class HamiltonHepaFanBackend(FanBackend):
916
"""Backend for Hepa fan attachment on Hamilton Liquid Handler"""

pylabrobot/plate_reading/clario_star_backend.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
import time
77
from typing import List, Optional, Union
88

9+
from pylibftdi import driver
10+
911
from pylabrobot import utils
1012
from pylabrobot.io.ftdi import FTDI
1113
from pylabrobot.resources.plate import Plate
@@ -19,6 +21,12 @@
1921

2022
logger = logging.getLogger("pylabrobot")
2123

24+
# Make pylibftdi scan the CLARIOstar VID:PID
25+
# appears as ID 0403:bb68 Future Technology Devices International Limited CLARIOstar
26+
27+
driver.USB_VID_LIST.append(0x0403) # i.e. 1027
28+
driver.USB_PID_LIST.append(0xBB68) # i.e. 47976
29+
2230

2331
class CLARIOStarBackend(PlateReaderBackend):
2432
"""A plate reader backend for the Clario star. Note that this is not a complete implementation

0 commit comments

Comments
 (0)