-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f9faf7a
commit 1813364
Showing
7 changed files
with
124 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
Julien Barrier, <[email protected]> | ||
""" | ||
import logging | ||
from typing import Optional | ||
|
||
from .private.CC import _Thorlabs_CC | ||
|
||
|
@@ -15,19 +16,27 @@ class Thorlabs_KDC101(_Thorlabs_CC): | |
"""Instrument driver for the Thorlabs KDC101 servo motor controller | ||
Args: | ||
name (str): Instrument name. | ||
serial_number (str): Serial number of the device. | ||
simulation (bool): Enables the simulation manager. Defaults to False. | ||
polling (int): Polling rate in ms. Defaults to 200. | ||
home (bool): Sets the device to home state. Defaults to False. | ||
name: Instrument name. | ||
serial_number: Serial number of the device. | ||
dll_path: Path to the kinesis dll for the instrument to use. | ||
dll_dir: Directory in which the kinesis dll are stored. | ||
simulation: Enables the simulation manager. | ||
polling: Polling rate in ms. | ||
home: Sets the device to home state. | ||
""" | ||
def __init__(self, | ||
name: str, | ||
serial_number: str, | ||
dll_path: Optional[str] = None, | ||
dll_dir: Optional[str] = None, | ||
simulation: bool = False, | ||
polling: int = 200, | ||
home: bool = False, | ||
**kwargs): | ||
self._dll_path = 'Thorlabs.MotionControl.KCube.DCServo.dll' | ||
super().__init__(name, serial_number, self._dll_path, | ||
simulation, polling, home, **kwargs) | ||
if dll_path: | ||
self._dll_path = dll_path | ||
else: | ||
self._dll_path = 'Thorlabs.MotionControl.KCube.DCServo.dll' | ||
self._dll_dir: str | None = dll_dir if dll_dir else None | ||
super().__init__(name, serial_number, self._dll_path, self._dll_dir, | ||
simulation, polling, home, **kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
Julien Barrier <[email protected]>, 2023 | ||
""" | ||
import logging | ||
from typing import Optional | ||
from .private.LS import _Thorlabs_LS | ||
|
||
log = logging.getLogger(__name__) | ||
|
@@ -14,17 +15,25 @@ class Thorlabs_KLS1550(_Thorlabs_LS): | |
"""Instrument driver for the Thorlabs KLS1550 | ||
Args: | ||
name (str): Instrument name. | ||
serial_number (str): Serial number of the device. | ||
simulation (bool): Enables the simulation manager. Defaults to False | ||
polling (int): Polling rate in ms. Defaults to 200. | ||
name: Instrument name. | ||
serial_number: Serial number of the device. | ||
dll_path: Path to the kinesis dll for the instrument to use. | ||
dll_dir: Directory in which the kinesis dll are stored. | ||
simulation: Enables the simulation manager. | ||
polling: Polling rate in ms. | ||
""" | ||
def __init__(self, | ||
name: str, | ||
serial_number: str, | ||
dll_path: Optional[str] = None, | ||
dll_dir: Optional[str] = None, | ||
simulation: bool = False, | ||
polling: int = 200, | ||
**kwargs): | ||
self._dll_path = 'Thorlabs. .dll' | ||
super().__init__(name, serial_number, self._dll_path, | ||
if dll_path: | ||
self._dll_path = dll_path | ||
else: | ||
self._dll_path = 'Thorlabs.MotionControl.KCube.LaserSource.dll' | ||
self._dll_dir: str | None = dll_dir if dll_dir else None | ||
super().__init__(name, serial_number, self._dll_path, self._dll_dir, | ||
simulation, polling, **kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,7 @@ | |
Julien Barrier, <[email protected]> | ||
""" | ||
import logging | ||
from typing import Optional | ||
|
||
from .private.CC import _Thorlabs_CC | ||
|
||
|
@@ -15,20 +16,28 @@ class Thorlabs_TDC001(_Thorlabs_CC): | |
"""Instrument driver for the Thorlabs TDC001 servo motor controller | ||
Args: | ||
name (str): Instrument name. | ||
serial_number (str): Serial number of the device. | ||
simulation (bool): Enables the simulation manager. Defaults to False. | ||
polling (int): Polling rate in ms. Defaults to 200. | ||
home (bool): Sets the device to home state. Defaults to False. | ||
name: Instrument name. | ||
serial_number: Serial number of the device. | ||
dll_path: Path to the kinesis dll for the instrument to use. | ||
dll_dir: Directory in which the kinesis dll are stored. | ||
simulation: Enables the simulation manager. Defaults to False. | ||
polling: Polling rate in ms. Defaults to 200. | ||
home: Sets the device to home state. Defaults to False. | ||
""" | ||
_CONDITIONS = ['homed', 'moved', 'stopped', 'limit_updated'] | ||
def __init__(self, | ||
name: str, | ||
serial_number: str, | ||
dll_path: Optional[str] = None, | ||
dll_dir: Optional[str] = None, | ||
simulation: bool = False, | ||
polling: int = 200, | ||
home: bool = False, | ||
**kwargs): | ||
self._dll_path = 'Thorlabs.MotionControl.TCube.DCServo.dll' | ||
super().__init__(name, serial_number, self._dll_path, | ||
simulation, polling, home, **kwargs) | ||
if dll_path: | ||
self._dll_path = dll_path | ||
else: | ||
self._dll_path = 'Thorlabs.MotionControl.TCube.DCServo.dll' | ||
self._dll_dir: str | None = dll_dir if dll_dir else None | ||
super().__init__(name, serial_number, self._dll_path, self._dll_dir, | ||
simulation, polling, home, **kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.