This commit is contained in:
gac-ISS
2023-01-18 17:07:49 +01:00
parent a44512d8d4
commit 34c56d7822
3 changed files with 14 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
#Wed Jan 18 15:55:04 CET 2023
#Wed Jan 18 17:07:27 CET 2023
LastRunDate=230118
FileSequentialNumber=189
DaySequentialNumber=51
FileSequentialNumber=197
DaySequentialNumber=59

View File

@@ -143,7 +143,14 @@ public class XPS extends ScriptProcessor {
}
try{
textCurScan.setText(getGlobalVar("CURRENT_REGION").toString());
Object region = getGlobalVar("CURRENT_REGION");
Object pass = getGlobalVar("CURRENT_PASS");
Number no_pases = (Number) getGlobalVar("PASSES");
String text = region.toString();
if (no_pases.intValue()>1){
text = text + " [" + pass + "]";
}
textCurScan.setText(text);
} catch(Exception ex){
getLogger().log(Level.FINER, null, ex);
textCurScan.setText("");

View File

@@ -35,6 +35,7 @@ print "PASSES: ", PASSES
CURRENT_REGION = ""
CURRENT_INDEX = -1
CURRENT_PASS = 1
PLOT_TYPES={"spectrum":1, "energy":1}
SEQUENTIAL=False
DEBUG=False
@@ -98,11 +99,12 @@ def scan(region):
if DEBUG: print "Starting scan region ", region
name=REGIONS[region][0]
def before_pass(pass_num):
global scanning
global scanning, CURRENT_PASS
if DEBUG: print "Waiting for pass: " , pass_num, " on region: ", region
while (CURRENT_INDEX != (region-1)) or scanning:
time.sleep(0.1)
scanning = True
CURRENT_PASS = pass_num
if DEBUG: print "Starting pass: " , pass_num, " on region: ", region
set_region_index(region)