Loading Common/Servers/PyLocalOscillator/src/LocalOscillatorImpl/LocalOscillator.py +9 −5 Original line number Diff line number Diff line Loading @@ -66,27 +66,31 @@ import Receivers import ComponentErrorsImpl import ComponentErrors from LocalOscillatorImpl import CommandLine from IRAPy import logger IP, PORT = "192.168.200.149", 5025 #real hw class LocalOscillator(Receivers__POA.LocalOscillator, CharacteristicComponent, ContainerServices, ComponentLifecycle): def __init__(self): CharacteristicComponent.__init__(self) ContainerServices.__init__(self) self.cl=CommandLine.CommandLine() # # ___oOo___ def cleanUp(self): pass def initialize(self): addProperty(self, 'frequency', devio_ref=frequencyDevIO()) addProperty(self, 'amplitude', devio_ref=amplitudeDevIO()) addProperty(self, 'isLocked', devio_ref=isLockedDevIO()) self.cl=CommandLine() self.cl.configure(IP,PORT) def set(self,rf_power,rf_freq): self.cl.setPower(rf_power) Loading Common/Servers/PyLocalOscillator/src/Makefile +1 −1 File changed.Contains only whitespace changes. Show changes Loading
Common/Servers/PyLocalOscillator/src/LocalOscillatorImpl/LocalOscillator.py +9 −5 Original line number Diff line number Diff line Loading @@ -66,27 +66,31 @@ import Receivers import ComponentErrorsImpl import ComponentErrors from LocalOscillatorImpl import CommandLine from IRAPy import logger IP, PORT = "192.168.200.149", 5025 #real hw class LocalOscillator(Receivers__POA.LocalOscillator, CharacteristicComponent, ContainerServices, ComponentLifecycle): def __init__(self): CharacteristicComponent.__init__(self) ContainerServices.__init__(self) self.cl=CommandLine.CommandLine() # # ___oOo___ def cleanUp(self): pass def initialize(self): addProperty(self, 'frequency', devio_ref=frequencyDevIO()) addProperty(self, 'amplitude', devio_ref=amplitudeDevIO()) addProperty(self, 'isLocked', devio_ref=isLockedDevIO()) self.cl=CommandLine() self.cl.configure(IP,PORT) def set(self,rf_power,rf_freq): self.cl.setPower(rf_power) Loading
Common/Servers/PyLocalOscillator/src/Makefile +1 −1 File changed.Contains only whitespace changes. Show changes