From a1b21cb26e203e9dde9507c84f39b18c49687f8f Mon Sep 17 00:00:00 2001 From: "Matthias@Dell" Date: Sat, 1 Jul 2023 16:59:54 +0200 Subject: [PATCH] added beep --- m_teng/backends/keithley/keithley.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/m_teng/backends/keithley/keithley.py b/m_teng/backends/keithley/keithley.py index 84e6831..bc846f8 100644 --- a/m_teng/backends/keithley/keithley.py +++ b/m_teng/backends/keithley/keithley.py @@ -30,6 +30,8 @@ def init(beep_success=True): if beep_success: keithley.write("beeper.beep(0.5, 1000)") return keithley +def beep(instr, length=0.5, pitch=1000): + instr.write(f"beeper.beep({length}, {pitch})") def exit(instr): instr.close()