#tutorial_path = "src/main/assembly/help/Tutorial_py/"
#run(tutorial_path+"SimulatedDevices")
def scan1():
    print "scan1"
    return lscan(ao1, ai1, 0, 40, 20, 0.1, title = "scan1")

def scan2():
    print "scan2"    
    return lscan(ao2, wf1, 0, 40, 20, 0.1, title = "scan2", tag="tag1")

def scan3():
    print "scan3"
    return tscan(ai1, 10, 0.3, title = "scan3", group = "g1", persist=False)

def scan4():
    print "scan4"    
    return tscan(wf1, 10, 0.3, title = "scan4", tag="tag2", group = "g2", plot_enable=False)

def scan5():
    print "scan5"    
    return lscan(ao2, wf1, 0, 40, 20, 0.1, title = "scan5")


#set_exec_pars(tag = "g5" )   
parallelize(scan1, scan2, scan3, scan4, scan5)
#lscan(ao1, ai1, 0, 40, 20, 0.1, title = "scan1")

#set_exec_pars(tag = "g5" )  
#tscan(ai1, 10, 0.3, title = "scan6")