Пример #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
 def initServer(self):
     """
     
     """
     yield GPIBManagedServer.initServer(self)
     yield util.wakeupCall(3)