Skip to content

Commit 02b3604

Browse files
authored
Expose request_y_pos_iswap_channel (#666)
1 parent 981ef4b commit 02b3604

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

pylabrobot/liquid_handling/backends/hamilton/STAR_backend.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6403,6 +6403,19 @@ async def position_components_for_free_iswap_y_range(self):
64036403

64046404
return await self.send_command(module="C0", command="FY")
64056405

6406+
async def request_y_pos_iswap_channel(self):
6407+
"""Query the current Y-axis position of the iSWAP channel."""
6408+
6409+
y_pos_query_increments = await self.send_command(
6410+
module="R0",
6411+
command="RY",
6412+
fmt="ry######",
6413+
)
6414+
6415+
y_pos_query_mm = self.y_drive_increment_to_mm(y_pos_query_increments["ry"])
6416+
6417+
return round(y_pos_query_mm, 1)
6418+
64066419
async def move_iswap_x_relative(self, step_size: float, allow_splitting: bool = False):
64076420
"""
64086421
Args:

0 commit comments

Comments
 (0)