This commit is contained in:
16
script/tutorial/40_SimultaneousScans.js
Executable file
16
script/tutorial/40_SimultaneousScans.js
Executable file
@@ -0,0 +1,16 @@
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Example on running simultaneous scans. They should not manipulate same writables
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
function scan1(){
|
||||
print ("scan1")
|
||||
return lscan(ao1, ai1, 0, 40, 20, 0.1)
|
||||
}
|
||||
|
||||
function scan2(){
|
||||
print ("scan2")
|
||||
return lscan(ao2, wf1, 0, 40, 20, 0.1, undefined, undefined, undefined, undefined, undefined, title = "scan2")
|
||||
}
|
||||
|
||||
parallelize(scan1, scan2)
|
||||
Reference in New Issue
Block a user