This commit is contained in:
2019-11-22 09:52:28 +01:00
parent 78af3359b8
commit 51cf415701
4 changed files with 14 additions and 9 deletions

View File

@@ -1,7 +1,7 @@
import ch.psi.pshell.bs.Provider as Provider
url="tcp://localhost:9999"
url="tcp://SFTEST-CVME-DBPM1:9001"
url= "tcp://SIN-CVME-DBPM0421:9000"
#url= "tcp://SIN-CVME-DBPM0421:9000"
p=Provider("provider", url, True)
p.config.keepListeningOnStop = True
p.config.parallelHandlerProcessing = False
@@ -9,10 +9,15 @@ p.config.byteBufferAllocator = True
st1 = Stream("st1", p)
st1.initialize()
st1.start()
st1.waitCacheChange(10000)
st1.waitCacheChange(20000)
#try:
# bscan (st1, 5, 5, save=False)
#finally:
# st1.close()
try:
bscan (st1, 5, 5, save=False)
print st1.getValues()
finally:
st1.close()
st1.close()