";
S += "";
var Vmax = 500;var Imax = 500;
for (var i = 0; i < 100; i++) {
Vmax = Math.max(Math.abs(volt[i]), Vmax);
Imax = Math.max(Math.abs(amp[i]), Imax);
}
S += "";
S += "";
S += "";
document.getElementById('SVG').innerHTML = S;
var X = 0;
var Y = 99 - 99 * datas[2] / 12000;//PW
var C='orange';
if (datas[2] < 0) { //PW
X = 198 - Y;
Y = 0;
C='green';
}
S = "
";
document.getElementById('PW_graph').innerHTML = S;
setTimeout('LoadData();',2000);
}
};
xhttp.open('GET', 'ajax_data', true);
xhttp.send();
}
function choix_mode(M){
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
var retour=this.responseText;
}
};
xhttp.open('GET', 'ajax_order?ModeHeater='+M, true);
xhttp.send();
}