Refresh scan plots during runs
This commit is contained in:
+8
-1
@@ -3534,7 +3534,11 @@ function sum(array){
|
||||
return sum_array;
|
||||
}
|
||||
|
||||
function startSequence() {
|
||||
function yieldToRenderer() {
|
||||
return new Promise((resolve) => setTimeout(resolve, 0));
|
||||
}
|
||||
|
||||
async function startSequence() {
|
||||
let cmd = '';
|
||||
let trimBin = All['trimPath']+"/trimspNL";
|
||||
let randStr = '';
|
||||
@@ -3620,6 +3624,7 @@ function startSequence() {
|
||||
Progress=Math.round(Progress+90/SValues.length);
|
||||
document.getElementById("pBar").style.width = Progress + "%";
|
||||
document.getElementById("pBar").innerHTML = Progress + "%";
|
||||
await yieldToRenderer();
|
||||
|
||||
// Single run: Start
|
||||
let eingabe1=CreateInpFile();
|
||||
@@ -3669,6 +3674,7 @@ function startSequence() {
|
||||
}
|
||||
Plot_xy("plotFrac",cdata[0],cdata[ilayer],['E (keV)','Fraction of muons (%)',chem]);
|
||||
}
|
||||
await yieldToRenderer();
|
||||
iScan++;
|
||||
}
|
||||
|
||||
@@ -3696,6 +3702,7 @@ function startSequence() {
|
||||
Progress=100;
|
||||
document.getElementById("pBar").style.width = Progress + "%";
|
||||
document.getElementById("pBar").innerHTML = Progress + "%";
|
||||
await yieldToRenderer();
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user