index=0

set_exec_pars(tag="scan {count} {count}%02d {index}%04d")
def calc():
    global index
    index += 1
    ret= tscan(sin, 10, 0.1)
    #ret= tscan(sin, 10, 0.1)
    v = max(ret.getReadable(0))
    return float(v)


class PseudoDev(Readable):
    def read(self):        
        return calc()

d=  PseudoDev()


ret= lscan(inp, (d), 0, 40, 5, 0.2)
#ret= lscan(inp, (d), 0, 40, 5, 0.2)

        
