From 3e240a0a3129ec27888c0524eca6f4d7b4c1821f Mon Sep 17 00:00:00 2001 From: "paolo.cinquegrana@elettra.eu" <paolo.cinquegrana@elettra.eu> Date: Fri, 20 Dec 2024 16:18:01 +0100 Subject: [PATCH] rimosso trls_slu.05 --- src/SluSourceMonitor.py | 61 ----------------------------------------- 1 file changed, 61 deletions(-) diff --git a/src/SluSourceMonitor.py b/src/SluSourceMonitor.py index e9a37db..7c61d47 100644 --- a/src/SluSourceMonitor.py +++ b/src/SluSourceMonitor.py @@ -57,7 +57,6 @@ try: sacco['decimacheck'] = PyTango.DeviceProxy('srv-tango-srf-01:20000/ec-sl-slpsr-01/rtevr/ff100000') sacco['frequenza'] = PyTango.DeviceProxy('srv-tango-srf-01:20000/f/timing/bunchnumber_f') sacco['trls8_delay'] = PyTango.DeviceProxy('srv-tango-srf-01:20000/sl/motor/trls_sl.08') - sacco['totem_delay'] = PyTango.DeviceProxy('srv-tango-srf-01:20000/slu/motor/trls_slu.05') sacco['triggerSL'] = PyTango.DeviceProxy('srv-tango-srf-01:20000/ec-sl-slpsr-01/evr/ff100000') sacco['triggerSL2'] = PyTango.DeviceProxy('srv-tango-srf-01:20000/ec-sl-slpsr-01/evr/ff200000') sacco['triggerSLU'] = PyTango.DeviceProxy('srv-tango-srf-01:20000/ec-slu-ehf-01/evr/ff100000') @@ -554,17 +553,6 @@ class MainWindow(QDialog): self.wavelength_subp2.text(4, 0.16, 'fel', color='blue') self.wavelength_subp2.text(4, 0.12, 'slu', color='orange') self.vergogna_canvas.draw() - self.delaytotem = QPushButton('Totem delay line') - self.delaytotem.clicked.connect(self.apridalaytotem) - self.delaytotemR = LineEditRO() - self.delaytotemW = QLineEdit('') - self.delaytotemABS = QPushButton('GO TO (ps):') - self.delaytotemABS.clicked.connect(self.delaytotemgoto) - self.delaytotemRELm = QPushButton('<') - self.delaytotemRELm.clicked.connect(self.delaytotemmeno) - self.delaytotemRELstep = QLineEdit('') - self.delaytotemRELp = QPushButton('>') - self.delaytotemRELp.clicked.connect(self.delaytotempiu) self.delay8 = QPushButton('TRLS8 delay line') self.delay8.clicked.connect(self.apridalay8) self.delay8R = LineEditRO() @@ -679,15 +667,6 @@ class MainWindow(QDialog): lot5.addWidget(self.delay8RELm, riga, 5) lot5.addWidget(self.delay8RELstep, riga, 6) lot5.addWidget(self.delay8RELp, riga, 7) - riga += 1 - lot5.addWidget(self.delaytotem, riga, 0) - lot5.addWidget(self.delaytotemR, riga, 1) - lot5.addWidget(self.delaytotemABS, riga, 2) - lot5.addWidget(self.delaytotemW, riga, 3) - lot5.addWidget(QLabel('Move by:'), riga, 4) - lot5.addWidget(self.delaytotemRELm, riga, 5) - lot5.addWidget(self.delaytotemRELstep, riga, 6) - lot5.addWidget(self.delaytotemRELp, riga, 7) #6 vacuum self.gruppoUTDR = QGroupBox("UTDR") self.gruppoUH = QGroupBox("UH") @@ -2066,18 +2045,6 @@ class MainWindow(QDialog): self.memo_dpi_W.setEnabled(1) self.memo_ldm_W.setEnabled(1) self.memo_mag_W.setEnabled(1) - try: - tmp = sacco['totem_delay'].read_attributes(['State', 'Position']) - delaytotemps = str(round(tmp[1].value, 3)) + ' ps' - except: - delaytotemps = '##### ps' - self.delaytotemR.setText(delaytotemps) - if str(tmp[0].value) == 'ON': - self.delaytotemR.setStyleSheet("background-color: #00ff00") - elif str(tmp[0].value) == 'MOVING': - self.delaytotemR.setStyleSheet("background-color: #7777ff") - else: - self.delaytotemR.setStyleSheet("background-color: #ff0000") try: tmp = sacco['trls8_delay'].read_attributes(['State', 'Position']) delay8ps = str(round(tmp[1].value, 3)) + ' ps' @@ -3263,23 +3230,6 @@ class MainWindow(QDialog): sacco[chi].write_attribute('InfiniteCycle', 1) sacco[chi].write_attribute('InfiniteCycle', tmp) - def apridalaytotem(self): - os.system('/runtime/bin/motion_controller slu/motor/trls_slu.05 -title SLU_TOTEM_DELAY_LINE &') - - def delaytotemgoto(self): - gol = float(self.delaytotemW.text()) - sacco['totem_delay'].write_attribute('Position', gol) - - def delaytotemmeno(self): - tmp = float(self.delaytotemRELstep.text()) - gol = sacco['totem_delay'].position - tmp - sacco['totem_delay'].write_attribute('Position', gol) - - def delaytotempiu(self): - tmp = float(self.delaytotemRELstep.text()) - gol = sacco['totem_delay'].position + tmp - sacco['totem_delay'].write_attribute('Position', gol) - def apridalay8(self): os.system('/runtime/bin/xps-gui sl/motor/trls_sl.08 -title SL_SLU_delay_line &') @@ -3362,7 +3312,6 @@ class MainWindow(QDialog): print('trls8 form ' + str(self.memoDtrls8) + ' to ' + str(self.trls8calc)) print('evr ch2 from ' + str(self.memoDevrch2) + ' to ' + str(self.trg_elite2calc)) print('sdg from ' + str(self.memoDdgqch2) + ' to ' + str(self.trg_S2calc)) - self.delaytotemW.setText(str(round(sacco['totem_delay'].Position, 3))) self.delay8W.setText(str(round(self.trls8calc, 3))) self.triggermainW.setText(str(round(self.trg_elite2calc, 3))) self.triggerDGQ1W.setText(str(round(self.trg_S2calc, 3))) @@ -3388,61 +3337,51 @@ class MainWindow(QDialog): sacco['trls8_delay'].write_attribute('Position', sacco['costanti'].memo_delay_tmr1) sacco['triggerSL'].write_attribute('Chan2Delay', sacco['costanti'].memo_delay_tmr2) sacco['triggerDGQ1'].write_attribute('Chan2Delay', sacco['costanti'].memo_delay_tmr3) - sacco['totem_delay'].write_attribute('Position', sacco['costanti'].memo_delay_tmr4) def memoriaTMRw(self): sacco['costanti'].write_attribute('memo_delay_tmr1', sacco['trls8_delay'].Position) sacco['costanti'].write_attribute('memo_delay_tmr2', sacco['triggerSL'].Chan2Delay) sacco['costanti'].write_attribute('memo_delay_tmr3', sacco['triggerDGQ1'].Chan2Delay) - sacco['costanti'].write_attribute('memo_delay_tmr4', sacco['totem_delay'].Position) def memoriaTMXr(self): sacco['trls8_delay'].write_attribute('Position', sacco['costanti'].memo_delay_tmx1) sacco['triggerSL'].write_attribute('Chan2Delay', sacco['costanti'].memo_delay_tmx2) sacco['triggerDGQ1'].write_attribute('Chan2Delay', sacco['costanti'].memo_delay_tmx3) - sacco['totem_delay'].write_attribute('Position', sacco['costanti'].memo_delay_tmx4) def memoriaTMXw(self): sacco['costanti'].write_attribute('memo_delay_tmx1', sacco['trls8_delay'].Position) sacco['costanti'].write_attribute('memo_delay_tmx2', sacco['triggerSL'].Chan2Delay) sacco['costanti'].write_attribute('memo_delay_tmx3', sacco['triggerDGQ1'].Chan2Delay) - sacco['costanti'].write_attribute('memo_delay_tmx4', sacco['totem_delay'].Position) def memoriaDPIr(self): sacco['trls8_delay'].write_attribute('Position', sacco['costanti'].memo_delay_dpi1) sacco['triggerSL'].write_attribute('Chan2Delay', sacco['costanti'].memo_delay_dpi2) sacco['triggerDGQ1'].write_attribute('Chan2Delay', sacco['costanti'].memo_delay_dpi3) - sacco['totem_delay'].write_attribute('Position', sacco['costanti'].memo_delay_dpi4) def memoriaDPIw(self): sacco['costanti'].write_attribute('memo_delay_dpi1', sacco['trls8_delay'].Position) sacco['costanti'].write_attribute('memo_delay_dpi2', sacco['triggerSL'].Chan2Delay) sacco['costanti'].write_attribute('memo_delay_dpi3', sacco['triggerDGQ1'].Chan2Delay) - sacco['costanti'].write_attribute('memo_delay_dpi4', sacco['totem_delay'].Position) def memoriaLDMr(self): sacco['trls8_delay'].write_attribute('Position', sacco['costanti'].memo_delay_ldm1) sacco['triggerSL'].write_attribute('Chan2Delay', sacco['costanti'].memo_delay_ldm2) sacco['triggerDGQ1'].write_attribute('Chan2Delay', sacco['costanti'].memo_delay_ldm3) - sacco['totem_delay'].write_attribute('Position', sacco['costanti'].memo_delay_ldm4) def memoriaLDMw(self): sacco['costanti'].write_attribute('memo_delay_ldm1', sacco['trls8_delay'].Position) sacco['costanti'].write_attribute('memo_delay_ldm2', sacco['triggerSL'].Chan2Delay) sacco['costanti'].write_attribute('memo_delay_ldm3', sacco['triggerDGQ1'].Chan2Delay) - sacco['costanti'].write_attribute('memo_delay_ldm4', sacco['totem_delay'].Position) def memoriaMAGr(self): sacco['trls8_delay'].write_attribute('Position', sacco['costanti'].memo_delay_mag1) sacco['triggerSL'].write_attribute('Chan2Delay', sacco['costanti'].memo_delay_mag2) sacco['triggerDGQ1'].write_attribute('Chan2Delay', sacco['costanti'].memo_delay_mag3) - sacco['totem_delay'].write_attribute('Position', sacco['costanti'].memo_delay_mag4) def memoriaMAGw(self): sacco['costanti'].write_attribute('memo_delay_mag1', sacco['trls8_delay'].Position) sacco['costanti'].write_attribute('memo_delay_mag2', sacco['triggerSL'].Chan2Delay) sacco['costanti'].write_attribute('memo_delay_mag3', sacco['triggerDGQ1'].Chan2Delay) - sacco['costanti'].write_attribute('memo_delay_mag4', sacco['totem_delay'].Position) def funzionesalvatrigger(self): os.chdir('/home/lfo/data/salvatutto/SEED_trigger/') -- GitLab