コード例 #1
0
 def initServer(self):
     GPIBManagedServer.initServer(self)
     self.mydevices = {}
     # start refreshing only after we have started serving
     # this ensures that we are added to the list of available
     # servers before we start sending messages
     callLater(0.1, self.refreshDevices)
コード例 #2
0
 def initServer(self):
     yield GPIBManagedServer.initServer(self)
     self.mydevices = {}
     # start refreshing only after we have started serving
     # this ensures that we are added to the list of available
     # servers before we start sending messages
     callLater(0.1, self.refreshDevices)
コード例 #3
0
 def handleDeviceMessage(self, *args):
     """We override this function so that whenever a new SIM900 is
     added, and a message is sent out, we refresh the devices. This
     has the benefit of being able to start this server, the 
     GPIB Device Manager, and the GPIB Bus Server, in any order."""
     yield GPIBManagedServer.handleDeviceMessage(self, *args)
     if args[0] == self.deviceName: 
         self.refreshDevices()
コード例 #4
0
 def handleDeviceMessage(self, *args):
     """We override this function so that whenever a new SIM900 is
     added, and a message is sent out, we refresh the devices. This
     has the benefit of being able to start this server, the
     GPIB Device Manager, and the GPIB Bus Server, in any order."""
     yield GPIBManagedServer.handleDeviceMessage(self, *args)
     if args[0] == self.deviceName:
         self.refreshDevices()
コード例 #5
0
 def __init__(self):
     GPIBManagedServer.__init__(self)
     self.channel = 0 #channel 2 is the FAA pill.  GGG pill is chan 1
     self.lastTime = time.time()
コード例 #6
0
 def initServer(self):
     """
     
     """
     yield GPIBManagedServer.initServer(self)
     yield util.wakeupCall( 3 )
コード例 #7
0
 def __init__(self):
     GPIBManagedServer.__init__(self)
     self.channel = 0  #channel 2 is the FAA pill.  GGG pill is chan 1
     self.lastTime = time.time()
コード例 #8
0
ファイル: hp_3478a_dmm.py プロジェクト: JTPaustian/servers
 def initServer(self):
     """
     
     """
     yield GPIBManagedServer.initServer(self)
     yield util.wakeupCall(3)