#st1 = Stream("st1", bs)
st1 = Stream("st1", dispatcher)

s1=st1.addScalar("Int8Scalar", "Int8Scalar", 10, 0)
w1=st1.addWaveform("Int32Waveform", "Int32Waveform", 10, 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()    
