Commit d9004ae3 authored by Paolo Cinquegrana's avatar Paolo Cinquegrana
Browse files

corretto tango host

parent c761d7e5
......@@ -9,9 +9,9 @@ from PyQt4.QtCore import *
from PyQt4.QtGui import *
import sys
devicetrgEVR = PyTango.DeviceProxy('ec-pil-plpsr-01/evr/ff100000')
devicetrgDGQ = PyTango.DeviceProxy('pil/delay/dgq_pil.01')
devicetrgSDG = PyTango.DeviceProxy('pil/delay/sdg_pil.01')
devicetrgEVR = PyTango.DeviceProxy('srv-tango-srf-01:20000/ec-pil-plpsr-01/evr/ff100000')
devicetrgDGQ = PyTango.DeviceProxy('srv-tango-srf-01:20000/pil/delay/dgq_pil.01')
devicetrgSDG = PyTango.DeviceProxy('srv-tango-srf-01:20000/pil/delay/sdg_pil.01')
nomecartella = '/home/lfo/data/salvatutto/PIL_trigger/'
os.chdir(nomecartella)
......@@ -553,7 +553,7 @@ class canaleDGQ(QWidget):
def funzioneapplica(self):
valore = self.delay_write.value()
print(valore)
eval('self.dev.write_attribute("chan' + str(self.ch) + 'delay, valore)')
eval('self.dev.write_attribute("chan' + str(self.ch) + 'delay", ' + str(valore) + ')')
def funzioneaggiornavalori(self, tutto):
try:
ritardo = eval('self.dev.chan' + str(self.ch) + 'delay')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment