Commit 2b8de959 authored by Spencer Du's avatar Spencer Du

update

parent 2f6d5628
[445nm]
intensity = 8
[Subscriptions]
445nm = microscope/light_sheet_microscope/UI/laser/445nm
488nm = microscope/light_sheet_microscope/UI/laser/488nm
515nm = microscope/light_sheet_microscope/UI/laser/445nm
561nm = microscope/light_sheet_microscope/UI/laser/561nm
594nm = microscope/light_sheet_microscope/UI/laser/594nm
638nm = microscope/light_sheet_microscope/UI/laser/638nm
[488nm]
intensity = 8
[515nm]
intensity = 8
[561nm]
intensity = 8
[594nm]
intensity = 8
[638nm]
intensity = 8
......@@ -1141,83 +1141,83 @@ class Ui_Laser(object):
client.loop_stop()
print("Laser turned on")
self.pushButton_7.clicked.connect(self.stop)
try:
self.verticalSlider.setValue(config.getint("445nm", "intensity"))
print("455nm laser set")
self.pushButton.setChecked(True)
except Exception as e:
print("455nm laser not set")
try:
self.lineEdit.setText(str(config.getint("445nm", "intensity")))
print("455nm laser textbox set")
except Exception as e:
print("455nm laser textbox not set")
try:
self.verticalSlider_2.setValue(config.getint("488nm", "intensity"))
print("488nm laser set")
self.pushButton_2.setChecked(True)
except Exception as e:
print("488nm laser not set")
try:
self.lineEdit_2.setText(str(config.getint("488nm", "intensity")))
print("488nm laser textbox set")
except Exception as e:
print("488nm laser textbox not set")
try:
self.verticalSlider_3.setValue(config.getint("515nm", "intensity"))
print("515nm laser set")
self.pushButton_3.setChecked(True)
except Exception as e:
print("515nm laser not set")
try:
self.lineEdit_3.setText(str(config.getint("515nm", "intensity")))
print("515nm laser textbox set")
except Exception as e:
print("515nm laser textbox not set")
try:
self.verticalSlider_4.setValue(config.getint("561nm", "intensity"))
print("561nm laser set")
self.pushButton_4.setChecked(True)
except Exception as e:
print("561nm laser not set")
try:
self.lineEdit_4.setText(str(config.getint("561nm", "intensity")))
print("561nm laser textbox set")
except Exception as e:
print("561nm laser textbox not set")
try:
self.verticalSlider_5.setValue(config.getint("594nm", "intensity"))
print("594nm laser set")
self.pushButton_5.setChecked(True)
except Exception as e:
print("594nm laser not set")
try:
self.lineEdit_5.setText(str(config.getint("594nm", "intensity")))
print("594nm laser textbox set")
except Exception as e:
print("594nm laser textbox not set")
try:
self.verticalSlider_6.setValue(config.getint("638nm", "intensity"))
print("638nm laser set")
self.pushButton_6.setChecked(True)
except Exception as e:
print("638nm laser not set")
try:
self.lineEdit_6.setText(str(config.getint("638nm", "intensity")))
print("638nm laser textbox set")
except Exception as e:
print("638nm laser textbox not set")
# try:
# self.verticalSlider.setValue(config.getint("445nm", "intensity"))
# print("455nm laser set")
# self.pushButton.setChecked(True)
# except Exception as e:
# print("455nm laser not set")
# try:
# self.lineEdit.setText(str(config.getint("445nm", "intensity")))
# print("455nm laser textbox set")
# except Exception as e:
# print("455nm laser textbox not set")
# try:
# self.verticalSlider_2.setValue(config.getint("488nm", "intensity"))
# print("488nm laser set")
# self.pushButton_2.setChecked(True)
# except Exception as e:
# print("488nm laser not set")
# try:
# self.lineEdit_2.setText(str(config.getint("488nm", "intensity")))
# print("488nm laser textbox set")
# except Exception as e:
# print("488nm laser textbox not set")
# try:
# self.verticalSlider_3.setValue(config.getint("515nm", "intensity"))
# print("515nm laser set")
# self.pushButton_3.setChecked(True)
# except Exception as e:
# print("515nm laser not set")
# try:
# self.lineEdit_3.setText(str(config.getint("515nm", "intensity")))
# print("515nm laser textbox set")
# except Exception as e:
# print("515nm laser textbox not set")
# try:
# self.verticalSlider_4.setValue(config.getint("561nm", "intensity"))
# print("561nm laser set")
# self.pushButton_4.setChecked(True)
# except Exception as e:
# print("561nm laser not set")
# try:
# self.lineEdit_4.setText(str(config.getint("561nm", "intensity")))
# print("561nm laser textbox set")
# except Exception as e:
# print("561nm laser textbox not set")
# try:
# self.verticalSlider_5.setValue(config.getint("594nm", "intensity"))
# print("594nm laser set")
# self.pushButton_5.setChecked(True)
# except Exception as e:
# print("594nm laser not set")
# try:
# self.lineEdit_5.setText(str(config.getint("594nm", "intensity")))
# print("594nm laser textbox set")
# except Exception as e:
# print("594nm laser textbox not set")
# try:
# self.verticalSlider_6.setValue(config.getint("638nm", "intensity"))
# print("638nm laser set")
# self.pushButton_6.setChecked(True)
# except Exception as e:
# print("638nm laser not set")
# try:
# self.lineEdit_6.setText(str(config.getint("638nm", "intensity")))
# print("638nm laser textbox set")
# except Exception as e:
# print("638nm laser textbox not set")
else:
print("Config file does not exist")
else:
......@@ -1241,6 +1241,7 @@ class Ui_Laser(object):
self.pushButton.setChecked(False)
# self.pushButton.setCheckable(False)
try:
self.pushButton.setCheckable(False)
self.pushButton.clicked.disconnect(self.btnstate)
except Exception as e:
pass
......@@ -1250,10 +1251,9 @@ class Ui_Laser(object):
pass
self.verticalSlider.setValue(0)
self.lineEdit.clear()
self.pushButton_2.setChecked(False)
# self.pushButton_2.setCheckable(False)
try:
self.pushButton_2.setCheckable(False)
self.pushButton_2.clicked.disconnect(self.btnstate2)
except Exception as e:
pass
......@@ -1263,10 +1263,9 @@ class Ui_Laser(object):
pass
self.verticalSlider_2.setValue(0)
self.lineEdit_2.clear()
self.pushButton_3.setChecked(False)
# self.pushButton_3.setCheckable(False)
try:
self.pushButton_3.setCheckable(False)
self.pushButton_3.clicked.disconnect(self.btnstate3)
except Exception as e:
pass
......@@ -1276,10 +1275,9 @@ class Ui_Laser(object):
pass
self.verticalSlider_3.setValue(0)
self.lineEdit_3.clear()
self.pushButton_4.setChecked(False)
# self.pushButton_4.setCheckable(False)
try:
self.pushButton_4.setCheckable(False)
self.pushButton_4.clicked.disconnect(self.btnstate4)
except Exception as e:
pass
......@@ -1290,9 +1288,9 @@ class Ui_Laser(object):
self.verticalSlider_4.setValue(0)
self.lineEdit_4.clear()
self.pushButton_5.setChecked(False)
# self.pushButton_5.setCheckable(False)
try:
self.pushButton_5.setCheckable(False)
self.pushButton_5.clicked.disconnect(self.btnstate5)
except Exception as e:
pass
......@@ -1303,9 +1301,9 @@ class Ui_Laser(object):
self.verticalSlider_5.setValue(0)
self.lineEdit_5.clear()
self.pushButton_6.setChecked(False)
# self.pushButton_6.setCheckable(False)
try:
self.pushButton_6.setCheckable(False)
self.pushButton_6.clicked.disconnect(self.btnstate6)
except Exception as e:
pass
......
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