Удалить 'Project/power_unit.py'

This commit is contained in:
Дмитрий Пунов 2022-12-10 17:01:20 +03:00
parent d33cdfe21a
commit 2725c2fa6e

View File

@ -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())