예제 #1
0
 def __init__(self):
     SimpleProtocol.__init__(self)
     self.commands = [
     ]  # Queue of command sent to the device which will provide replies, each entry is a dict with keys "cmd","source","keep", and "sent"
     self.name = 'hw'
     self.type = 'hw'
     self.status_commands = [':APP:VOLT?', ':APP:CURR?', 'CHAN:OUTP:ALL?']
예제 #2
0
 def __init__(self):
     SimpleProtocol.__init__(self)
     self.commands = [
     ]  # Queue of command sent to the device which will provide replies, each entry is a dict with keys "cmd","source","timeStamp"
     self.name = 'hw'
     self.type = 'hw'
     self.lastAutoRead = datetime.datetime.utcnow()
예제 #3
0
파일: gpib.py 프로젝트: karpov-sv/ccdlab
 def __init__(self):
     SimpleProtocol.__init__(self)
     self.command_id = 0
     self.commands = []
     self.name = 'hw'
     self.type = 'hw'
     self.next_addr = -1
     self.daemonQs = {}  # queues for GPIB devices commands, the key as the address
     self.gpibAddrList = []  # a list of the active GPIB connection addresses
     self.readBusy = [False,time.time()]
예제 #4
0
 def __init__(self):
     SimpleProtocol.__init__(self)
     self.commands = [
     ]  # Queue of command sent to the device which will provide replies, each entry is a dict with keys "cmd","source"
     self.name = 'hw'
     self.type = 'hw'
     self.status_commands = [
         "input? a,b,c,d;:cont?",
         ":loop 1:err?;rang?;type?;load?;outp?;htrr?;sour?;setp?;ramp?;rate?;pman?;",
         ":loop 2:err?;rang?;type?;load?;outp?;htrr?;sour?;setp?;ramp?;rate?;pman?;",
         ":loop 3:err?;rang?;type?;load?;outp?;htrr?;sour?;setp?;ramp?;rate?;pman?;",
         ":loop 4:err?;rang?;type?;load?;outp?;htrr?;sour?;setp?;ramp?;rate?;pman?;"
     ]
예제 #5
0
 def __init__(self):
     SimpleProtocol.__init__(self)
     self.commands = [
     ]  # Queue of command sent to the device which will provide replies, each entry is a dict with keys "cmd","source","timeStamp"
     self.name = 'hw'
     self.type = 'hw'
     self.lastAutoRead = datetime.datetime.utcnow()
     self.Iranges = {
         '1': '2nA',
         '2': '20nA',
         '3': '200nA',
         '4': '2uA',
         '5': '20uA',
         '6': '200uA',
         '7': '2mA'
     }
예제 #6
0
파일: gpib.py 프로젝트: karpov-sv/ccdlab
 def __init__(self):
     SimpleProtocol.__init__(self)
     self.addr = -1
예제 #7
0
 def __init__(self):
     SimpleProtocol.__init__(self)
     self.command_id = 0
     self.name = 'hw'
     self.type = 'hw'
     self.commands = {}
예제 #8
0
파일: monitor.py 프로젝트: karpov-sv/ccdlab
 def __init__(self):
     SimpleProtocol.__init__(self)
     self.name = None
     self.status = {}