コード例 #1
0
ファイル: owon_odp6033.py プロジェクト: karpov-sv/ccdlab
 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
ファイル: keithley6485.py プロジェクト: karpov-sv/ccdlab
 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 = {}