st1 = Stream("st1", dispatcher) add_device(st1, force = True) ch1="SINEG01-DICT210:GUN_CHARGE" ch1="SATMA02-RLLE-DSP:PHASE-VS" wv1="SARES11-SPEC125-M1.roi_signal_x_profile" s1=st1.addScalar(ch1,ch1, 1, 0) #w1=st1.addWaveform(wv1,wv1, 1, 0) #st1.addWaveform("phase", "SINXB01-RWVG100-DCP10:FOR-PHASE", 10, 0, 2048) #st1.addWaveform("amplt", "SINXB01-RWVG100-DCP10:FOR-AMPLT", 10, 0, 2048) st1.initialize() st1.start(True) print st1.waitCacheChange(5000) try: bscan (st1, 10, title="bscan") #tscan (st1.getReadables(), 10, 1, title="tscan") x = st1.take() finally: st1.close()