02.2026
This commit is contained in:
@@ -95,7 +95,7 @@ camera_name = screen
|
||||
phase.config.minValue = -90.0
|
||||
phase.config.maxValue = 360.0
|
||||
phase.config.precision = 4
|
||||
phase.config.resolution = 0.05
|
||||
phase.config.deadband = 0.05
|
||||
#phase.config.rotation = True # this may cause trouble when scanning around zero
|
||||
phase.config.save()
|
||||
phase.initialize()
|
||||
@@ -241,13 +241,13 @@ if do_elog:
|
||||
log_msg = log_msg + "Bunch length fit: %0.1f" % bunch_length_fit + " fs\n"
|
||||
log_msg = log_msg + "Calibration: %0.4f" % calib + " fs/um"
|
||||
sleep(0.1) #Give some time to plot to be finished - it is not sync with acquisition
|
||||
file_name1 = os.path.abspath(get_context().setup.getContextPath() + "/BunchLengthScanPlot1.png")
|
||||
file_name1 = os.path.abspath(Setup.getContextPath() + "/BunchLengthScanPlot1.png")
|
||||
plt11.saveSnapshot(file_name1, "png", Dimension(400, 300))
|
||||
file_name2 = os.path.abspath(get_context().setup.getContextPath() + "/BunchLengthCurrent1.png")
|
||||
file_name2 = os.path.abspath(Setup.getContextPath() + "/BunchLengthCurrent1.png")
|
||||
plt21.saveSnapshot(file_name2, "png", Dimension(400, 300))
|
||||
file_name3 = os.path.abspath(get_context().setup.getContextPath() + "/BunchLengthScanPlot2.png")
|
||||
file_name3 = os.path.abspath(Setup.getContextPath() + "/BunchLengthScanPlot2.png")
|
||||
plt12.saveSnapshot(file_name3, "png", Dimension(400, 300))
|
||||
file_name4 = os.path.abspath(get_context().setup.getContextPath() + "/BunchLengthCurrent2.png")
|
||||
file_name4 = os.path.abspath(Setup.getContextPath() + "/BunchLengthCurrent2.png")
|
||||
plt22.saveSnapshot(file_name4, "png", Dimension(400, 300))
|
||||
elog(title, log_msg, [file_name1, file_name2, file_name3, file_name4])
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import ch.psi.pshell.imaging.ImageBuffer as ImageBuffer
|
||||
import json
|
||||
import ch.psi.pshell.bs.PipelineServer as PipelineServer
|
||||
import ch.psi.pshell.camserver.PipelineSource as PipelineServer
|
||||
import ch.psi.pshell.imaging.Colormap as Colormap
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user