16 lines
372 B
Python
16 lines
372 B
Python
import ch.psi.pshell.bs.Provider as Provider
|
|
|
|
p=Provider("provider", "tcp://localhost:9999", True)
|
|
p.config.keepListeningOnStop = True
|
|
p.config.parallelHandlerProcessing = False
|
|
p.config.byteBufferAllocator = True
|
|
st1 = Stream("st1", p)
|
|
st1.initialize()
|
|
st1.start()
|
|
st1.waitCacheChange(10000)
|
|
|
|
try:
|
|
bscan (st1, 10, 10, save=False)
|
|
finally:
|
|
st1.close()
|
|
|