Удалить 'Project/power_unit.py'
This commit is contained in:
parent
d33cdfe21a
commit
2725c2fa6e
@ -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())
|
Loading…
Reference in New Issue
Block a user