def connectionMade(self): self.object['hw_connected'] = 1 self.name = 'hw' self.type = 'hw' SimpleProtocol.connectionMade(self) # make sure the units are Celsius self.message('input a,b,c,d:units c;:loop 1:load 50;:loop 2:load 0;')
def connectionMade(self): SimpleProtocol.connectionMade(self) self.commands = [] # We will set this flag when we receive any reply from the device self.object['hw_connected'] = 1 SimpleProtocol.message(self, '*RST') SimpleProtocol.message(self, '*IDN?')
def connectionMade(self): SimpleProtocol.connectionMade(self) self.object['hw_connected'] = 1 self.object['status'] = {} self.object['state'] = 'idle' self.message('SYSTEM')
def connectionMade(self): SimpleProtocol.connectionMade(self) self.commands = [] # We will set this flag when we receive any reply from the device self.object['hw_connected'] = 0 SimpleProtocol.message(self, 'set_addr %d' % self.object['addr']) SimpleProtocol.message(self, 'L0X') SimpleProtocol.message(self, 'K0X') SimpleProtocol.message(self, '?$U0X') # enable EOI and holdoff SimpleProtocol.message(self, 'R0X') # set autorange
def connectionMade(self): SimpleProtocol.connectionMade(self) self.object['hw_connected'] = 0 # We will set this flag when we receive any reply from the device SimpleProtocol.message(self, 'set_addr %d' % self.object['addr']) SimpleProtocol.message(self, '?$SYST:ERR?') self.commands = [{'cmd': 'SYST:ERR?', 'source': 'itself', 'timeStamp': datetime.datetime.utcnow(), 'keep': 'keep'}] SimpleProtocol.message(self, '*RST') SimpleProtocol.message(self, 'OUTP:LOAD 50') self.object['out_load'] = 50 SimpleProtocol.message(self, 'VOLT:OFFS 0') self.object['volt_offs'] = 0 SimpleProtocol.message(self, 'VOLT:UNIT VPP') self.object['volt_unit'] = 'VPP' SimpleProtocol.message(self, '?$*OPC?') self.commands = [{'cmd': '*OPC?', 'source': 'itself', 'timeStamp': datetime.datetime.utcnow(), 'keep': 'keep'}]
def connectionMade(self): SimpleProtocol.connectionMade(self) self.object[ 'hw_connected'] = 0 # We will set this flag when we receive any reply from the device SimpleProtocol.message(self, 'set_addr %d' % self.object['addr']) SimpleProtocol.message(self, '*rst') SimpleProtocol.message(self, '*cls') SimpleProtocol.message(self, ':SYST:ZCH ON') SimpleProtocol.message(self, ':CURR:RANG 2E-9') SimpleProtocol.message(self, ':INIT') SimpleProtocol.message(self, ':SYST:ZCOR:ACQ') SimpleProtocol.message(self, ':SYST:ZCH OFF') SimpleProtocol.message(self, ':SYSR:ZCOR ON') SimpleProtocol.message(self, ':CURR:RANG:AUTO ON') SimpleProtocol.message(self, '?$*opc?') self.commands = [{ 'cmd': '*opc?', 'source': 'itself', 'timeStamp': datetime.datetime.utcnow(), 'keep': 'keep' }]
def connectionMade(self): SimpleProtocol.connectionMade(self) self.object['hw_connected'] = 1 # We are resetting it to be sure that we have proper address later self.object['current_addr'] = -1 self.message('++auto 0')
def connectionMade(self): self.object['hw_connected'] = 1 self.name = 'hw' self.type = 'hw' SimpleProtocol.connectionMade(self)
def connectionMade(self): SimpleProtocol.connectionMade(self) self.message('id name=monitor') # Send our identity to the peer self.message('get_id') # Request peer identity