30 lines
675 B
Python
30 lines
675 B
Python
CAMERA = "SATES30-RIXS-CAM01"
|
|
CAMERA_URL = caget(CAMERA + ":BSREADCONFIG").replace("tcp://daq", "tcp://")
|
|
SAMPLES = 3
|
|
TIMEOUT = 10.0
|
|
CHANNEL_IMG = CAMERA+":FPICTURE"
|
|
|
|
|
|
add_device(Stream("cs", CAMERA_URL, SocketType.PULL), True)
|
|
#image = cs.addMatrix(CAMERA+":FPICTURE")
|
|
cs.createMatrix = True
|
|
cs.start()
|
|
cs.waitCacheChange(3000)
|
|
|
|
|
|
image = cs.getChild(CHANNEL_IMG)
|
|
add_device(image, True)
|
|
|
|
|
|
PLOT_TYPES={CHANNEL_IMG:"ch.psi.pshell.plot.MatrixPlotRenderer"}
|
|
#bscan(cs, 5, None)
|
|
|
|
|
|
|
|
bscan(cs, SAMPLES, TIMEOUT, enabled_plots=[cs])
|
|
#add_device(st1.getChildren()[0], True)
|
|
|
|
|
|
|
|
mscan(image, image, SAMPLES, TIMEOUT, plot_types=PLOT_TYPES)
|
|
tscan (image, 3, 1.0, plot_types=PLOT_TYPES) |