st = Stream("st1",dispatcher) st.setFilter(get_beam_ok_channel(bunch=1) + " == 1") c = "SARCL02-DBLM135:LOSS_SIGNAL_RAW" st.addWaveform(c, c, 1, 2048) try: st.initialize() st.start() st.waitCacheChange(10000) #Wait stream be running before starting scan mscan(st, st.getReadables()[1], -1, line_plots= [c,], keep=False, save=False) finally: st.close()