Kuhne module
Copyright (C) 2025-2026 Bence Göblyös
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
- class Kuhne.MKULO813PLL(port, timeout=1.0, legacy=False)[source]
Bases:
objectKuhne MKU LO 8-13 PLL driver class. Supports both v1 and v2 firmware.
- Parameters:
port (str) – Seirial port of the device. Examples: ‘COM3’ on Windows, ‘/dev/ttyACM0’ on Linux.
timeout (float, default: 1.0) – Communication timeout in seconds.
legacy (bool, default: False) – If True, uses the comminication protocol for the older v1.x firmware. If False, uses the more modern command set and syntax the v2.x firmware.
- sendCommand(cmd, timeout=1.0, capture_output=True)[source]
Sends a command to the device.
- Parameters:
cmd (str) – Command to be sent.
timeout (float, default: 1.0) – Communication timeout in seconds.
capture_output (bool, default: True) – Whether or not to capture the response.
- Returns:
nchar (int) – Number of characters transmitted. -1 indicates a transmission failure.
resp (str) – Response from device. None if response is not captured. If
nchar == -1, resp will contain the error message.
- setGHz(val, **kwargs)[source]
Sets the oscillator frequency in GHz.
- Parameters:
val (float) – Target frequency in GHz.
retries (int, default: 3) – Number of retransimssions in case of failure.
- Returns:
success – True if successful, False otherwise.
- Return type:
bool
- setHz(val, retries=3)[source]
Sets the oscillator frequency in Hz.
- Parameters:
val (int) – Target frequency in Hz.
retries (int, default: 3) – Number of retransimssions in case of failure.
- Returns:
success – True if successful, False otherwise.
- Return type:
bool