Commit 3202a483 authored by SRT Operator's avatar SRT Operator
Browse files

PyLocalOscillator LocalOscillator.py added command line

parent bdf7a2c5
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -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)
+1 −1

File changed.

Contains only whitespace changes.