Skip to content

thorlabs_mcls1: add OS-based backend selection (Windows UART lib / Linux serial)#441

Draft
ivalaginja wants to merge 7 commits into
developfrom
mcls1_serial_service
Draft

thorlabs_mcls1: add OS-based backend selection (Windows UART lib / Linux serial)#441
ivalaginja wants to merge 7 commits into
developfrom
mcls1_serial_service

Conversation

@ivalaginja
Copy link
Copy Markdown
Collaborator

@ivalaginja ivalaginja commented May 8, 2026

This PR updates the ThorlabsMcls1 service to support both Windows and Linux/macOS communication paths while keeping a single service implementation.

The MCLS1 service previously depended on the Thorlabs UART library flow, which is Windows-specific. We need the same service to work on non-Windows systems using direct serial communication (e.g., Linux).

I added runtime backend selection based on OS, and refactored all necessary methods to call one or the other, depending on the backend.

Backward-compatible for existing Windows setups (same UART library behavior).
Adds non-Windows support without introducing a second service class.

TODO

  • Test on Linux machine (capsule)
  • Test on Windows machine (HiCAT)

@ivalaginja ivalaginja self-assigned this May 8, 2026
@ivalaginja ivalaginja added the hardware Integrate new hardware label May 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hardware Integrate new hardware

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant