Added data logger (again)
This commit is contained in:
16
main.qml
16
main.qml
@@ -38,6 +38,7 @@ Window {
|
||||
|
||||
ComboBox {
|
||||
id: cbNUC;
|
||||
height: 60;
|
||||
model: ["NUC1", "NUC2", "NUC3", "NUC4", "NUC5"];
|
||||
onCurrentIndexChanged: {
|
||||
chart.reset();
|
||||
@@ -47,23 +48,36 @@ Window {
|
||||
Button {
|
||||
id: btnTrigger;
|
||||
text: "Start";
|
||||
height: 60;
|
||||
|
||||
onClicked: {
|
||||
if (mgmt.trigger()) {
|
||||
// running
|
||||
btnTrigger.text = "Stop";
|
||||
cbLogToDisk.enabled = false;
|
||||
} else {
|
||||
btnTrigger.text = "Start";
|
||||
cbLogToDisk.enabled = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Button {
|
||||
text: "Reset"
|
||||
text: "Reset";
|
||||
height: 60;
|
||||
|
||||
onClicked: {
|
||||
chart.reset();
|
||||
chart.update();
|
||||
}
|
||||
}
|
||||
|
||||
CheckBox {
|
||||
id: cbLogToDisk;
|
||||
text: "Log";
|
||||
onClicked: mgmt.logToDisk = checked
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Row {
|
||||
|
||||
Reference in New Issue
Block a user