""" 
Line Scan with 2 writables and triggering
"""

index=0 

x=0
def AfterReadout(rec):
    global x
    print rec.getIndex() ,
    print " - ",
    print rec.values
    

    if rec.index==10 and x==0:
        x=1
        time.sleep(3.0)
        rec.invalidate()
        
    


a= lscan((inp), (sin,out,arr), (0,), (40,), 20, 0.1, after_read=AfterReadout)