21 lines
379 B
Python
21 lines
379 B
Python
|
|
|
|
#Line scan
|
|
|
|
d = Channel("X07MB-OP2-SAI_08:MEAN", 'd')
|
|
set_device_alias(d, "dev1")
|
|
|
|
|
|
def before(position, scan):
|
|
caput("X07MB-OP2:SMPL.PROC",1)
|
|
cawait ("X07MB-OP2:SMPL-DONE",1, 10000)
|
|
|
|
def after(record, scan):
|
|
pass
|
|
|
|
setup_plotting(line_plots = [mca_1])
|
|
|
|
lscan(scan_y, [keith_1, d, mca_1], -10.0, -9.0, 10, latency = 0.01, before_read=before, after_read=after)
|
|
|
|
|