Difference: Hantek6022BEScope (6 vs. 7)

Revision 72017-04-07 - uli

Line: 1 to 1
 
META TOPICPARENT name="WebHome"

The Hantek 6022BE Digital Storage Oscilloscope

Line: 86 to 86
 It has the additional advantage that the demo device, which simply generates a sine wave (with some noise added) and a triangular signal, can be used for all GUI testing such that the hardware is not needed for most of the work.

The original openhantek program on the other hand has all necessary GUI elements. I therefore decided to try combining both, using the libraries from the new program and the GUI from the old one. The screen dump above shows the demo device with the old GUI.

Added:
>
>

Mapping the traces to the plots

 
Changed:
<
<
-- Uli Raich - 2017-01-24
>
>
Vertical mapping

The grids of the openhantek scope are 8 units high (-4 - +4) and 10 units wide (-5 - +5). The scope trace must be mapped to these dimensions. Since the scope hardware has got an 8 bit ADC values 0..250 must be mapped to -4..+4. In addition we must take into account the hardware gain that can be set on the scope. The following table shows the available hardware gains on the first column, the gain settings in V/div in the second one, the max voltages that can be displayed in the plot and the last column shows the multiplication factor needed to map the values from the scope to the screen.

Gain Setting [V] V/div Total size on plot [V] Multiplication Factor
1 10 mV 0.08 12.5
1 20 mV 0.16 6.25
1 50 mV 0.4 5
1 100 mV 0.8 1.25
1 200 mV 1.6 0.625
2 0.5 V 4 0.5
5 1 V 8 0.625
10 2 V 16 0.625
10 5 V 40 0.25
Example: Let’ say we have a 1 V signal we want to display. Then the scope HW gain will be set to 5V producing values of 128 corresponding to 0V to 128+32=160. In this case the maximum Voltage that can be displayed (without plying with the signal offset) is 4V corresponding to the scope voltage of 4V <> 205 (128 + (32*4)*0.625.

The vertical multiplication factor is multFactor = gain setting / total size on plot.
From the table we can see that for 5V/div only ¼ of the ADC resolution is reached while for 100mV/division and below the signal will be saturated.

Horizontal mapping

Horizontally we have to take into account

  • the timebase selected

  • the sampling rate

  • the record size needed to display the full trace

Timebase per division

Total horizontal size

Sampling rate

Record size

Down sampling

1s

10s

100 kHz

1 MS → 10 kS

100

500ms

5s

100 kHz

500 kS → 10 kS

50

200ms

2s

100 kHz

200 kS → 10 kS

20

100ms

1s

100 kHz

100 kS → 10 kS

10

50ms

500ms

100 kHz

50 kS → 10kS

5

20ms

200ms

100 kHz

20 kS

1

10ms

100ms

200 kHz

10 kS

1

5ms

50ms

200 kHz

10 kS

1

2ms

20ms

1 MHz

20 kS

1

1ms

10ms

1 MHz

10 kS

1

500us

5ms

1 MHz

5 kS

1

200us

2ms

1 MHz

2 kS

1

100us

1ms

1 MHz

1 kS

1

50us

500us

1 MHz

500 S

1

20us

200us

4 MHz

800 S

1

10us

100us

8 MHz

800 S

1

5us

50us

16 MHz

800

1

2us

20us

48 MHz

1016 (hardware max)

1

-- Uli Raich - 2017-01-24
 

Comments

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback