35 lines
1.0 KiB
Python
35 lines
1.0 KiB
Python
"""
|
|
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]
|
|
|
|
det4=ReaderWrapper(arr)
|
|
det5=ReaderWrapper(get_device("det").getDataMatrix() )
|
|
dets = [det1, det2, ch1, det3, det4, det5] #TODO: fix formatting for arrays
|
|
dets = [det1, det2, ch1, det3]
|
|
|
|
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]))
|
|
|
|
|
|
m1=MoverWrapper(get_device("motor"))
|
|
|
|
RE(scan(dets, m1, 0, 1, 5))
|