Ejemplo n.º 1
0
 def __load_devices_rtl(self):
     self.cfg.SetPath("/DevicesRTL")
     group = self.cfg.GetFirstGroup()
     while group[0]:
         self.cfg.SetPath("/DevicesRTL/" + group[1])
         device = DeviceRTL()
         device.name = group[1]
         device.serial = self.cfg.Read("serial", "")
         device.isDevice = self.cfg.ReadBool("isDevice", True)
         device.server = self.cfg.Read("server", "localhost")
         device.port = self.cfg.ReadInt("port", 1234)
         device.gain = self.cfg.ReadFloat("gain", 0)
         device.calibration = self.cfg.ReadFloat("calibration", 0)
         device.lo = self.cfg.ReadFloat("lo", 0)
         device.offset = self.cfg.ReadFloat("offset", 250e3)
         device.tuner = self.cfg.ReadInt("tuner", 0)
         self.devicesRtl.append(device)
         self.cfg.SetPath("/DevicesRTL")
         group = self.cfg.GetNextGroup(group[2])
Ejemplo n.º 2
0
 def __load_devices_rtl(self):
     self.cfg.SetPath("/DevicesRTL")
     group = self.cfg.GetFirstGroup()
     while group[0]:
         self.cfg.SetPath("/DevicesRTL/" + group[1])
         device = DeviceRTL()
         device.name = group[1]
         device.serial = self.cfg.Read('serial', '')
         device.isDevice = self.cfg.ReadBool('isDevice', True)
         device.server = self.cfg.Read('server', 'localhost')
         device.port = self.cfg.ReadInt('port', 1234)
         device.gain = self.cfg.ReadFloat('gain', 0)
         device.calibration = self.cfg.ReadFloat('calibration', 0)
         device.lo = self.cfg.ReadFloat('lo', 0)
         device.offset = self.cfg.ReadFloat('offset', 250e3)
         device.tuner = self.cfg.ReadInt('tuner', 0)
         self.devicesRtl.append(device)
         self.cfg.SetPath("/DevicesRTL")
         group = self.cfg.GetNextGroup(group[2])