This commit is contained in:
30
script/cpy/bluesky2.py
Normal file
30
script/cpy/bluesky2.py
Normal file
@@ -0,0 +1,30 @@
|
||||
"""
|
||||
RE = RunEngine({}, during_task=EventProcessingTask())
|
||||
bec = BestEffortCallback()
|
||||
bec.disable_plots()
|
||||
RE.subscribe(bec)
|
||||
RE.subscribe(handler)
|
||||
|
||||
motor.delay = 1.1 # simulate slow motor movement
|
||||
|
||||
|
||||
ch1 = EpicsSignal("TESTIOC:TESTSINUS:SinCalc")
|
||||
#TODO: DEmonstrate use of waveform and areadetector (Manual scan setup with the indexes in name)
|
||||
#ch2 = EpicsSignal("TESTIOC:TESTWF2:MyWF", name="arr[10]")
|
||||
#ch3 = EpicsSignal("TESTIOC:TESTWF2:MyWF", name="img[3][2]")det3=ReaderWrapper(sin)
|
||||
"""
|
||||
dets = [det1, det2]
|
||||
|
||||
RE(count(dets, num=5, delay=0.5))
|
||||
RE(scan(dets, motor, 0, 1, 5))
|
||||
RE(rel_scan(dets, motor, -1, 1, 10))
|
||||
RE(list_scan(dets, motor, [1, 1, 2, 3, 5, 8, 13]))
|
||||
RE(grid_scan(dets, motor1, -1.5, 1.5, 3, motor2, -0.1, 0.1, 5))
|
||||
RE(list_grid_scan(dets, motor1, [1, 1, 2, 3, 5], motor2, [25, 16, 9]))
|
||||
|
||||
|
||||
det4=ReaderWrapper(arr)
|
||||
det5=ReaderWrapper(get_device("det").getDataMatrix() )
|
||||
m1=MoverWrapper(get_device("motor"))
|
||||
dets = [det1, det2, ch1, det3, det4, det5]
|
||||
RE(scan(dets, m1, 0, 1, 5))
|
||||
Reference in New Issue
Block a user