mirror of
https://github.com/EEVengers/ThunderScope.git
synced 2025-04-08 06:25:30 +00:00
Minor changes
This commit is contained in:
parent
f91f59adbb
commit
fefebb0e6b
Software/waveview
@ -33,6 +33,8 @@ Prepend the name with `CMD_` to find it in the Electron and C++ code.
|
||||
|
||||
Cmd | DataSize | Name | Description
|
||||
-----|-----------------|---------------|------------------------
|
||||
0x01 | 2 (useless) | GetData1 |
|
||||
0x11 | 2 | SetFile | Number mapped to filename by C++
|
||||
0x1F | 2 (useless) | RampDemo |
|
||||
0x21 | 2 (useless) | GetWindowSize |
|
||||
0x22 | 2 (useless) | GetCh |
|
||||
@ -58,17 +60,19 @@ Note that the encoding used by the protocol might not be same as the encoding us
|
||||
|
||||
Cmd | DataSize | Name | Description
|
||||
-----|-----------------|---------------|------------------------
|
||||
0x01 | ch * windowSize | GetData1 | Data for all ch
|
||||
0x11 | 0 | SetFile | Set testdata filename
|
||||
0x1F | 4096 | RampDemo | 4 ch, simple waves
|
||||
0x21 | 4 | GetWindowSize | Data has window size
|
||||
0x22 | 2 | GetCh | Data has ch 1, 2, or 4
|
||||
0x23 | 2 | GetLevel | Data has new level
|
||||
0x24 | 2 | GetTriggerCh | Data has channel 1,2,3,4
|
||||
0x24 | 2 | GetTriggerCh | Data has channel 1,2,3 or 4
|
||||
0x25 | 2 | GetEdgeType | Data has 1 (rising) or 2 (falling)
|
||||
0x31 | 0 | SetWindowSize |
|
||||
0x32 | 0 | SetCh |
|
||||
0x33 | 0 | SetLevel |
|
||||
0x34 | 0 | SetTriggerCh |
|
||||
0x35 | 0 | SetEdgeType |
|
||||
0x35 | 0 | SetEdgeType |
|
||||
0x3F | 0 | SetMath |
|
||||
|
||||
## Allocated But Not Implemented
|
||||
@ -77,25 +81,22 @@ Cmd | DataSize | Name | Description
|
||||
|
||||
Cmd | DataSize | Name | Description
|
||||
-----|-----------------|---------------|------------------------
|
||||
0x01 | 2 (useless) | GetData |
|
||||
0x02 | 2 (useless) | Reserved | If we need 1 command/ch
|
||||
0x03 | 2 (useless) | Reserved | If we need 1 command/ch
|
||||
0x04 | 2 (useless) | Reserved | If we need 1 command/ch
|
||||
0x11 | 2 | SetFile | Number mapped to filename by C++
|
||||
|
||||
|
||||
0x02 | 2 (useless) | GetData2 | Reserved, If we need 1 command/ch
|
||||
0x03 | 2 (useless) | GetData3 | Reserved, If we need 1 command/ch
|
||||
0x04 | 2 (useless) | GetData4 | Reserved, If we need 1 command/ch
|
||||
0x05 | 2 | GetMin | Data has ch 1,2,3 or 4
|
||||
0x06 | 2 | GetMax | Data has ch 1,2,3 or 4
|
||||
|
||||
### C++ -> Electron
|
||||
|
||||
Cmd | DataSize | Name | Description
|
||||
-----|-----------------|---------------|------------------------
|
||||
0x01 | ch * windowSize | GetData | Data for all ch
|
||||
0x02 | windowSize | Reserved | If we need 1 command/ch
|
||||
0x03 | windowSize | Reserved | If we need 1 command/ch
|
||||
0x04 | windowSize | Reserved | If we need 1 command/ch
|
||||
0x11 | 0 | SetFile | Set testdata filename
|
||||
|
||||
0x05 | 4 | GetMin | Data has ch 1,2,3 or 4
|
||||
0x06 | 4 | GetMax | Data has ch 1,2,3 or 4
|
||||
|
||||
## Proposed But Not Allocated
|
||||
|
||||
+ getMax/getMin: obsolete if scope data packets also have math
|
||||
+ (none)
|
||||
|
@ -70,6 +70,8 @@ enum CMD {
|
||||
CMD_GetData2 = 0x02,
|
||||
CMD_GetData3 = 0x03,
|
||||
CMD_GetData4 = 0x04,
|
||||
CMD_GetMin = 0x05,
|
||||
CMD_GetMax = 0x06,
|
||||
|
||||
//Demo commands
|
||||
CMD_SetFile = 0x11,
|
||||
|
@ -25,7 +25,7 @@ class App extends React.Component {
|
||||
constructor(props: any) {
|
||||
super(props);
|
||||
this.state = initialState;
|
||||
this.generator = new TestPoints(1000, 30);
|
||||
this.generator = new TestPoints(50, 30);
|
||||
this.conf = new TestConf();
|
||||
this.channelList = [
|
||||
{color: "#EBFF00", className: "Channel1"},
|
||||
|
@ -4,6 +4,8 @@ export enum CMD {
|
||||
CMD_GetData2 = 0x02,
|
||||
CMD_GetData3 = 0x03,
|
||||
CMD_GetData4 = 0x04,
|
||||
CMD_GetMin = 0x05,
|
||||
CMD_GetMax = 0x06,
|
||||
|
||||
//Demo commands
|
||||
CMD_SetFile = 0x11,
|
||||
|
Loading…
Reference in New Issue
Block a user