7
mirror of https://github.com/EEVengers/ThunderScope.git synced 2025-04-11 23:19:16 +00:00
This commit is contained in:
Ratan Varghese 2021-03-25 18:31:52 -04:00
parent d1e94e5f86
commit f18edc67cc
2 changed files with 5 additions and 3 deletions
Software/waveview/src

View File

@ -108,7 +108,7 @@ const VerticalWidgetInitialState = {
unit: VoltageUnit.MilliVolt
}
],
getDataChannelOrder: [1, 2, 3, 4]
getDataChannelOrder: [1]
};
export default VerticalWidgetInitialState;

View File

@ -32,7 +32,7 @@ class TestPoints {
bodyCheck: () => true,
cmd: CMD.CMD_SetCh,
id: 0,
writeData: [state.verticalWidget.getDataChannelOrder.length, 0]
writeData: [1, 0, 0, 0]
}
this.setFileArgs = {
@ -71,7 +71,8 @@ class TestPoints {
if(this.setChDone && this.setFileDone && this.setWinDone) {
let state = store.getState();
let base = state.horizontalWidget.horizontalTimeBase.coarse;
let xLimit = convertTime(base.value, base.unit, TimeUnit.NanoSecond);
let dCount = DefaultValues.divisions.time;
let xLimit = dCount * convertTime(base.value, base.unit, TimeUnit.NanoSecond);
let doMath = state.mathWidget.mathEnabled as boolean;
let order = state.verticalWidget.getDataChannelOrder as number[];
@ -112,6 +113,7 @@ class TestPoints {
}
getData() {
console.log(this.scope_data);
return this.scope_data;
}
}