Script execution

This commit is contained in:
2019-11-14 16:05:03 +01:00
parent f4c0007c45
commit 8b0f6e7e2e

View File

@@ -1,7 +1,10 @@
import ch.psi.pshell.bs.Provider as Provider
p=Provider("provider", "tcp://localhost:9999", True)
st1 = Stream("st1", dispatcher)
p.config.keepListeningOnStop = True
p.config.parallelHandlerProcessing = False
p.config.byteBufferAllocator = True
st1 = Stream("st1", p)
st1.initialize()
st1.start()
st1.waitCacheChange(10000)
@@ -9,4 +12,5 @@ st1.waitCacheChange(10000)
try:
bscan (st1, 10, 10, save=False)
finally:
st1.close()
st1.close()