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

corretto comando per sequencer OFF, corretta funzione ripristina piezi

parent 127a348d
......@@ -1109,89 +1109,90 @@ class MainWindow(QDialog):
print('error fb ldm')
def neresterasoltantounoSEQ(self):
print('ffffffffffffffffffff')
if self.linea == 'TIMER':
try:
sacco['tmxfbsequencer'].command_inout('Stop')
sacco['tmxfbsequencer'].command_inout('Init')
except:
print('error seq tmx')
try:
sacco['dpifbsequencer'].command_inout('Stop')
sacco['dpifbsequencer'].command_inout('Init')
except:
print('error seq dpi')
try:
sacco['ldmfbsequencer'].command_inout('Stop')
sacco['ldmfbsequencer'].command_inout('Init')
except:
print('error seq ldm')
try:
sacco['magfbsequencer'].command_inout('Stop')
sacco['magfbsequencer'].command_inout('Init')
except:
print('error seq mag')
elif self.linea == 'TIMEX':
try:
sacco['tmrfeedback'].command_inout('Stop')
sacco['tmrfeedback'].command_inout('Init')
except:
print('error seq tmr')
try:
sacco['dpifbsequencer'].command_inout('Stop')
sacco['dpifbsequencer'].command_inout('Init')
except:
print('error seq dpi')
try:
sacco['ldmfbsequencer'].command_inout('Stop')
sacco['ldmfbsequencer'].command_inout('Init')
except:
print('error seq ldm')
try:
sacco['magfbsequencer'].command_inout('Stop')
sacco['magfbsequencer'].command_inout('Init')
except:
print('error seq mag')
elif self.linea == 'DIPROI':
try:
sacco['tmrfeedback'].command_inout('Stop')
sacco['tmrfeedback'].command_inout('Init')
except:
print('error seq tmr')
try:
sacco['tmxfbsequencer'].command_inout('Stop')
sacco['tmxfbsequencer'].command_inout('Init')
except:
print('error seq tmx')
try:
sacco['ldmfbsequencer'].command_inout('Stop')
sacco['ldmfbsequencer'].command_inout('Init')
except:
print('error seq ldm')
try:
sacco['magfbsequencer'].command_inout('Stop')
sacco['magfbsequencer'].command_inout('Init')
except:
print('error seq mag')
elif self.linea == 'LDM':
try:
sacco['tmrfeedback'].command_inout('Stop')
sacco['tmrfeedback'].command_inout('Init')
except:
print('error seq tmr')
try:
sacco['tmxfbsequencer'].command_inout('Stop')
sacco['tmxfbsequencer'].command_inout('Init')
except:
print('error seq tmx')
try:
sacco['dpifbsequencer'].command_inout('Stop')
sacco['dpifbsequencer'].command_inout('Init')
except:
print('error seq dpi')
try:
sacco['magfbsequencer'].command_inout('Stop')
sacco['magfbsequencer'].command_inout('Init')
except:
print('error seq mag')
elif self.linea == 'MAGNEDYN':
try:
sacco['tmrfeedback'].command_inout('Stop')
sacco['tmrfeedback'].command_inout('Init')
except:
print('error seq tmr')
try:
sacco['tmxfbsequencer'].command_inout('Stop')
sacco['tmxfbsequencer'].command_inout('Init')
except:
print('error seq tmx')
try:
sacco['dpifbsequencer'].command_inout('Stop')
sacco['dpifbsequencer'].command_inout('Init')
except:
print('error seq dpi')
try:
sacco['ldmfbsequencer'].command_inout('Stop')
sacco['ldmfbsequencer'].command_inout('Init')
except:
print('error seq ldm')
......@@ -1315,34 +1316,34 @@ class MainWindow(QDialog):
def riapplicatensioni(self):
tmp = sacco['costanti'].voltage_tiptilt_slu01_H
sacco['piezo1'].write_attribute('VoltageHor')
sacco['piezo1'].write_attribute('VoltageHor', tmp)
time.sleep(0.02)
tmp = sacco['costanti'].voltage_tiptilt_slu01_V
sacco['piezo1'].write_attribute('VoltageVer')
sacco['piezo1'].write_attribute('VoltageVer', tmp)
time.sleep(0.02)
tmp = sacco['costanti'].voltage_tiptilt_slu02_H
sacco['piezo2'].write_attribute('VoltageHor')
sacco['piezo2'].write_attribute('VoltageHor', tmp)
time.sleep(0.02)
tmp = sacco['costanti'].voltage_tiptilt_slu02_V
sacco['piezo2'].write_attribute('VoltageVer')
sacco['piezo2'].write_attribute('VoltageVer', tmp)
time.sleep(0.02)
tmp = sacco['costanti'].voltage_tiptilt_slu03_H
sacco['piezo3'].write_attribute('VoltageHor')
sacco['piezo3'].write_attribute('VoltageHor', tmp)
time.sleep(0.02)
tmp = sacco['costanti'].voltage_tiptilt_slu03_V
sacco['piezo3'].write_attribute('VoltageVer')
sacco['piezo3'].write_attribute('VoltageVer', tmp)
time.sleep(0.02)
tmp = sacco['costanti'].voltage_tiptilt_slu04_H
sacco['piezo0'].write_attribute('VoltageHor')
sacco['piezo0'].write_attribute('VoltageHor', tmp)
time.sleep(0.02)
tmp = sacco['costanti'].voltage_tiptilt_slu04_V
sacco['piezo0'].write_attribute('VoltageVer')
sacco['piezo0'].write_attribute('VoltageVer', tmp)
time.sleep(0.02)
tmp = sacco['costanti'].voltage_tiptilt_slu05_H
sacco['piezo4'].write_attribute('VoltageHor')
sacco['piezo4'].write_attribute('VoltageHor', tmp)
time.sleep(0.02)
tmp = sacco['costanti'].voltage_tiptilt_slu05_V
sacco['piezo4'].write_attribute('VoltageVer')
sacco['piezo4'].write_attribute('VoltageVer', tmp)
time.sleep(0.02)
def apriSEQpesi(self):
......@@ -1530,7 +1531,7 @@ class MainWindow(QDialog):
elif self.linea == 'MAGNEDYN':
dasitemare2 = sacco['magfbsequencer']
if str(self.feedbackautoonoffreset.text()) == 'OFF':
dasitemare2.command_inout('Stop')
dasitemare2.command_inout('Init')
elif str(self.feedbackautoonoffreset.text()) == 'ON':
dasitemare2.command_inout('Start')
elif str(self.feedbackautoonoffreset.text()) == 'Reset':
......
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