New ScreenPanel

This commit is contained in:
2018-01-19 10:56:53 +01:00
commit ae4d621609
580 changed files with 46598 additions and 0 deletions

19
script/27_ResamplingRecord.js Executable file
View File

@@ -0,0 +1,19 @@
///////////////////////////////////////////////////////////////////////////////////////////////////
//Resampling a scan record if a fail condition is met.
///////////////////////////////////////////////////////////////////////////////////////////////////
index=0
function AfterReadout(rec){
print (rec.getIndex() + " - " + to_array(rec.values))
//Only accept records if ai2 is positive
if (ai2.take() < 0){
sleep(1.0)
print("Invalidating")
rec.invalidate()
}
}
a= lscan(m1, [ai1,ai2], [0,], [0.4,], 20, 0.1, relative = undefined, passes = undefined, zigzag = undefined, before_read = undefined, after_read=AfterReadout)