From 2725c2fa6ea4b23344228245b5618698066278db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=9F=D1=83?= =?UTF-8?q?=D0=BD=D0=BE=D0=B2?= Date: Sat, 10 Dec 2022 17:01:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B4=D0=B0=D0=BB=D0=B8=D1=82=D1=8C=20'P?= =?UTF-8?q?roject/power=5Funit.py'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Project/power_unit.py | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100644 Project/power_unit.py diff --git a/Project/power_unit.py b/Project/power_unit.py deleted file mode 100644 index 1d46452..0000000 --- a/Project/power_unit.py +++ /dev/null @@ -1,19 +0,0 @@ -import check_connection -import serial - - -class Agilent(): - - def __init__(self, folder): - self.folder = folder - self.instr = serial.Serial( - self.folder, timeout=1, inter_byte_timeout=1) - msg = 'OUTput on\n' - self.instr.write(msg.encode('ascii')) - - def setVoltageDC(self, volt): - self.instr.write(('VOLTage '+str(volt)+'\n').encode('ascii')) - - def getID(self): - self.instr.write(('*IDN?\n').encode('ascii')) - print(self.instr.read(100).decode().rstrip())