summaryrefslogtreecommitdiffstats
path: root/python/gui/static/js/odr-predistortion.js
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2018-12-18 16:26:17 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2018-12-18 16:26:17 +0100
commite83e1324a50055a4b972b78e26383df7ee290fee (patch)
treee3ee189286ff6c408d4003d1d6710580f48d48da /python/gui/static/js/odr-predistortion.js
parent154234871e06d6943d7e79a05ba10b37eb7e9198 (diff)
downloaddabmod-e83e1324a50055a4b972b78e26383df7ee290fee.tar.gz
dabmod-e83e1324a50055a4b972b78e26383df7ee290fee.tar.bz2
dabmod-e83e1324a50055a4b972b78e26383df7ee290fee.zip
GUI: add capture and plot to DPD
Diffstat (limited to 'python/gui/static/js/odr-predistortion.js')
-rw-r--r--python/gui/static/js/odr-predistortion.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/python/gui/static/js/odr-predistortion.js b/python/gui/static/js/odr-predistortion.js
index 739e0ee..e9f7c96 100644
--- a/python/gui/static/js/odr-predistortion.js
+++ b/python/gui/static/js/odr-predistortion.js
@@ -35,6 +35,10 @@ function resultrefresh() {
}
$('#dpdprogress').css('width', percentage + '%');
$('#dpdprogresstext').text(percentage + '%');
+
+ if (data['statplot']) {
+ $('#dpdcapturestats').attr('src', data['statplot']);
+ }
});
jqxhr.always(function() {
@@ -43,7 +47,7 @@ function resultrefresh() {
}
$(function(){
- setTimeout(resultrefresh, 2000);
+ setTimeout(resultrefresh, 20);
$('#calibratebtn').click(function() {
doApiRequestPOST("/api/dpd_calibrate", {}, function(data) {
@@ -51,6 +55,17 @@ $(function(){
});
});
+ $('#resetbtn').click(function() {
+ doApiRequestPOST("/api/dpd_reset", {}, function(data) {
+ console.log("reset succeeded: " + JSON.stringify(data));
+ });
+ });
+
+ $('#triggerbtn').click(function() {
+ doApiRequestPOST("/api/dpd_trigger_run", {}, function(data) {
+ console.log("run succeeded: " + JSON.stringify(data));
+ });
+ });
});
/*