Files
ncs/script/tutorial/16_SimultaneousScans.py
boccioli_m 79e9aac763 Startup
2015-09-02 10:39:31 +02:00

16 lines
325 B
Python

"""
Example on running simultaneous scans. They should not manipulate same writables
"""
def scan1():
print "scan1"
return lscan(ao1, ai1, 0, 40, 20, 0.1, context = "scan1")
def scan2():
print "scan2"
return lscan(ao2, wf1, 0, 40, 20, 0.1, context = "scan2")
parallelize(scan1, scan2)