Files
dev/script/test/bs5.py
2020-04-01 17:08:54 +02:00

27 lines
602 B
Python
Executable File

#st1 = Stream("st1", bs)
st1 = Stream("st1", dispatcher)
s1=st1.addScalar("Int8Scalar", "Int8Scalar", 1, 0)
s2=st1.addScalar("Int16Scalar", "Int16Scalar", 1, 0)
w1=st1.addWaveform("Int32Waveform", "Int32Waveform", 1, 0)
#st1.setFilter("Int8Scalar>50")
st1.initialize()
st1.start()
st1.waitCacheChange(10000)
#st1.setFilter("Int8Scalar>20")
try:
#tscan (st1.getReadables(), 100, 0)
#The bscan command performs samples every stream element
bscan (st1, -1, 5.0, layout = "sf") #Sampling 10 elements
#st1.start(True)
#tscan ([s1,w1], 10 , 0.2)
finally:
st1.close()