Remove valve reading and frequency

This commit is contained in:
Etienne Chassaing 2025-07-15 13:54:41 +02:00
parent e210ef8100
commit fe05d62736

View File

@ -87,16 +87,16 @@
x: [[t], [t], [t]], x: [[t], [t], [t]],
y: [[pu.Pro], [pu.Pdilute], [pu.Prentate]] y: [[pu.Pro], [pu.Pdilute], [pu.Prentate]]
}, [0, 1, 2], maxPoints); }, [0, 1, 2], maxPoints);
// TURN OFF FOR NOW
Plotly.extendTraces('mv02-plot', { x: [[t]], y: [[pu.MV02]] }, [0]); // Plotly.extendTraces('mv02-plot', { x: [[t]], y: [[pu.MV02]] }, [0]);
Plotly.extendTraces('mv03-plot', { x: [[t]], y: [[pu.MV03]] }, [0]); // Plotly.extendTraces('mv03-plot', { x: [[t]], y: [[pu.MV03]] }, [0]);
Plotly.extendTraces('mv04-05-plot', { // Plotly.extendTraces('mv04-05-plot', {
x: [[t], [t]], // x: [[t], [t]],
y: [[pu.MV04], [pu.MV05]] // y: [[pu.MV04], [pu.MV05]]
}, [0, 1]); // }, [0, 1]);
Plotly.extendTraces('mv06-plot', { x: [[t]], y: [[pu.MV06]] }, [0]); // Plotly.extendTraces('mv06-plot', { x: [[t]], y: [[pu.MV06]] }, [0]);
Plotly.extendTraces('mv07-plot', { x: [[t]], y: [[pu.MV07]] }, [0]); // Plotly.extendTraces('mv07-plot', { x: [[t]], y: [[pu.MV07]] }, [0]);
Plotly.extendTraces('mv08-plot', { x: [[t]], y: [[pu.MV08]] }, [0]); // Plotly.extendTraces('mv08-plot', { x: [[t]], y: [[pu.MV08]] }, [0]);
const range = getLastMinuteRange(); const range = getLastMinuteRange();
const plotIds = [ const plotIds = [
@ -136,45 +136,45 @@
xaxis: { title: 'Time', type: 'date' }, xaxis: { title: 'Time', type: 'date' },
yaxis: { title: 'Pressure (bar)', range: [0, 15] } yaxis: { title: 'Pressure (bar)', range: [0, 15] }
}); });
//
// Plotly.newPlot('mv02-plot', [{
// x: time0, y: [0], name: 'MV02', mode: 'lines'
// }], {
// title: 'MV02 (%)', yaxis: { range: [0, 100] }, xaxis: { type: 'date' }
// });
//
// Plotly.newPlot('mv03-plot', [{
// x: time0, y: [0], name: 'MV03', mode: 'lines'
// }], {
// title: 'MV03 (%)', yaxis: { range: [0, 100] }, xaxis: { type: 'date' }
// });
//
// Plotly.newPlot('mv04-05-plot', [
// { x: time0, y: [0], name: 'MV04', mode: 'lines' },
// { x: time0, y: [0], name: 'MV05', mode: 'lines' }
// ], {
// title: 'MV04 + MV05 (%)', yaxis: { range: [0, 100] }, xaxis: { type: 'date' }
// });
//
// Plotly.newPlot('mv06-plot', [{
// x: time0, y: [0], name: 'MV06', mode: 'lines'
// }], {
// title: 'MV06 (%)', yaxis: { range: [0, 100] }, xaxis: { type: 'date' }
// });
//
// Plotly.newPlot('mv07-plot', [{
// x: time0, y: [0], name: 'MV07', mode: 'lines'
// }], {
// title: 'MV07 (%)', yaxis: { range: [0, 100] }, xaxis: { type: 'date' }
// });
//
// Plotly.newPlot('mv08-plot', [{
// x: time0, y: [0], name: 'MV08', mode: 'lines'
// }], {
// title: 'MV08 (%)', yaxis: { range: [0, 100] }, xaxis: { type: 'date' }
// });
Plotly.newPlot('mv02-plot', [{ setInterval(updatePlots, 250);
x: time0, y: [0], name: 'MV02', mode: 'lines'
}], {
title: 'MV02 (%)', yaxis: { range: [0, 100] }, xaxis: { type: 'date' }
});
Plotly.newPlot('mv03-plot', [{
x: time0, y: [0], name: 'MV03', mode: 'lines'
}], {
title: 'MV03 (%)', yaxis: { range: [0, 100] }, xaxis: { type: 'date' }
});
Plotly.newPlot('mv04-05-plot', [
{ x: time0, y: [0], name: 'MV04', mode: 'lines' },
{ x: time0, y: [0], name: 'MV05', mode: 'lines' }
], {
title: 'MV04 + MV05 (%)', yaxis: { range: [0, 100] }, xaxis: { type: 'date' }
});
Plotly.newPlot('mv06-plot', [{
x: time0, y: [0], name: 'MV06', mode: 'lines'
}], {
title: 'MV06 (%)', yaxis: { range: [0, 100] }, xaxis: { type: 'date' }
});
Plotly.newPlot('mv07-plot', [{
x: time0, y: [0], name: 'MV07', mode: 'lines'
}], {
title: 'MV07 (%)', yaxis: { range: [0, 100] }, xaxis: { type: 'date' }
});
Plotly.newPlot('mv08-plot', [{
x: time0, y: [0], name: 'MV08', mode: 'lines'
}], {
title: 'MV08 (%)', yaxis: { range: [0, 100] }, xaxis: { type: 'date' }
});
setInterval(updatePlots, 1000);
} }
window.onload = initPlots; window.onload = initPlots;