OpenHantek
Loading...
Searching...
No Matches
Dso Namespace Reference

Data Structures

struct  ControlSamplerateLimits
 Stores the samplerate limits for calculations. More...
struct  ControlSettings
 Stores the current settings of the device. More...
struct  ControlSettingsSamplerate
 Stores the current samplerate settings of the device. More...
struct  ControlSettingsSamplerateTarget
 Stores the target samplerate settings of the device. More...
struct  ControlSettingsTrigger
 Stores the current trigger settings of the device. More...
struct  ControlSettingsVoltage
 Stores the current amplification settings of the device. More...
struct  ControlSpecification
 Stores the specifications of the currently connected device. More...
struct  ControlSpecificationGainLevel
struct  ControlSpecificationSamplerate
 Stores the samplerate limits. More...
struct  FixedSampleRate

Enumerations

enum class  ChannelMode { Voltage , Spectrum }
 The channel display modes. More...
enum  GraphFormat { TY , XY }
 The possible viewing formats for the graphs on the scope. More...
enum class  Coupling { DC , AC , GND }
 The coupling modes for the channels. More...
enum class  TriggerMode { AUTO , NORMAL , SINGLE , ROLL }
 The different triggering modes. More...
enum class  Slope : uint8_t { Positive = 0 , Negative = 1 , Both = 2 }
 The slope that causes a trigger. More...
enum  InterpolationMode {
  INTERPOLATION_OFF = 0 , INTERPOLATION_LINEAR , INTERPOLATION_STEP , INTERPOLATION_SINC ,
  INTERPOLATION_COUNT
}
 The different interpolation modes for the graphs. More...
enum  Themes { THEME_AUTO = 0 , THEME_LIGHT , THEME_DARK }
 The different themes for display. More...
enum class  ErrorCode { NONE = 0 , CONNECTION = -1 , UNSUPPORTED = -2 , PARAMETER = -3 }
 The return codes for device control methods. More...
enum class  MathMode : unsigned {
  ADD_CH1_CH2 , SUB_CH2_FROM_CH1 , SUB_CH1_FROM_CH2 , MUL_CH1_CH2 ,
  AND_CH1_CH2 , AND_NOT_CH1_NOT_CH2 , AND_NOT_CH1_CH2 , AND_CH1_NOT_CH2 ,
  EQU_CH1_CH2 , GREAT_CH1_CH2 , GREAT_CH2_CH1 , LP10_CH1 ,
  LP10_CH2 , LP100_CH1 , LP100_CH2 , SQ_CH1 ,
  SQ_CH2 , AC_CH1 , AC_CH2 , DC_CH1 ,
  DC_CH2 , ABS_CH1 , ABS_CH2 , SIGN_CH1 ,
  SIGN_CH2 , SIGN_AC_CH1 , SIGN_AC_CH2 , TRIG_CH1 ,
  TRIG_CH2
}
 The different math modes for the math-channel. More...
enum class  WindowFunction : int {
  RECTANGULAR , HANN , HAMMING , COSINE ,
  LANCZOS , TRIANGULAR , BARTLETT , BARTLETT_HANN ,
  GAUSS , KAISER , BLACKMAN , NUTTALL ,
  BLACKMAN_HARRIS , BLACKMAN_NUTTALL , FLATTOP
}
 The supported window functions. These are needed for spectrum analysis and are applied to the sample values before calculating the DFT. More...

Functions

QString graphFormatString (GraphFormat format)
 Return string representation of the given graph format.
QString couplingString (Coupling coupling)
 Return string representation of the given channel coupling.
QString triggerModeString (TriggerMode mode)
 Return string representation of the given trigger mode.
QString slopeString (Slope slope)
 Return string representation of the given trigger slope.
Unit mathModeUnit (MathMode mode)
unsigned mathChannelsUsed (MathMode mode)
QString mathModeString (MathMode mode)
 Return string representation of the given math mode.
template<class T>
MathMode getMathMode (T &t)
QString windowFunctionString (WindowFunction windowFunction)
 Return string representation of the given window function.

Variables

Enum< Dso::TriggerMode, Dso::TriggerMode::AUTO, Dso::TriggerMode::ROLLTriggerModeEnum
Enum< Dso::Slope, Dso::Slope::Positive, Dso::Slope::BothSlopeEnum
Enum< Dso::GraphFormat, Dso::GraphFormat::TY, Dso::GraphFormat::XYGraphFormatEnum
Enum< Dso::MathMode, Dso::MathMode::ADD_CH1_CH2, Dso::MathMode::TRIG_CH2MathModeEnum
const auto LastBinaryMathMode = MathMode::GREAT_CH2_CH1
const auto LastMathMode = MathMode::TRIG_CH2
Enum< Dso::WindowFunction, Dso::WindowFunction::RECTANGULAR, Dso::WindowFunction::FLATTOPWindowFunctionEnum
const auto LastWindowFunction = WindowFunction::FLATTOP

Enumeration Type Documentation

◆ ChannelMode

enum class Dso::ChannelMode
strong

The channel display modes.

Enumerator
Voltage 

Standard voltage view.

Spectrum 

Spectrum view.

◆ Coupling

enum class Dso::Coupling
strong

The coupling modes for the channels.

Enumerator
DC 

No filtering.

AC 

Offset filtered out by capacitor.

GND 

Channel is grounded.

◆ ErrorCode

enum class Dso::ErrorCode
strong

The return codes for device control methods.

Enumerator
NONE 

Successful operation.

CONNECTION 

Device not connected or communication error.

UNSUPPORTED 

Not supported by this device.

PARAMETER 

Parameter out of range.

◆ GraphFormat

The possible viewing formats for the graphs on the scope.

Enumerator
TY 

The standard mode.

XY 

CH1 on X-axis, CH2 on Y-axis.

◆ InterpolationMode

The different interpolation modes for the graphs.

Enumerator
INTERPOLATION_OFF 

Just dots for each sample.

INTERPOLATION_LINEAR 

Sample dots connected by straight lines.

INTERPOLATION_STEP 

Sample dots connected by one step.

INTERPOLATION_SINC 

Sample dots upsampled by bandlimited sinc.

INTERPOLATION_COUNT 

Total number of interpolation modes.

◆ MathMode

enum class Dso::MathMode : unsigned
strong

The different math modes for the math-channel.

Enumerator
ADD_CH1_CH2 
SUB_CH2_FROM_CH1 
SUB_CH1_FROM_CH2 
MUL_CH1_CH2 
AND_CH1_CH2 
AND_NOT_CH1_NOT_CH2 
AND_NOT_CH1_CH2 
AND_CH1_NOT_CH2 
EQU_CH1_CH2 
GREAT_CH1_CH2 
GREAT_CH2_CH1 
LP10_CH1 
LP10_CH2 
LP100_CH1 
LP100_CH2 
SQ_CH1 
SQ_CH2 
AC_CH1 
AC_CH2 
DC_CH1 
DC_CH2 
ABS_CH1 
ABS_CH2 
SIGN_CH1 
SIGN_CH2 
SIGN_AC_CH1 
SIGN_AC_CH2 
TRIG_CH1 
TRIG_CH2 

◆ Slope

enum class Dso::Slope : uint8_t
strong

The slope that causes a trigger.

Enumerator
Positive 

From lower to higher voltage.

Negative 

From higher to lower voltage.

Both 

At 1st level crossing up or down.

◆ Themes

The different themes for display.

Enumerator
THEME_AUTO 

Use the system theme.

THEME_LIGHT 

Force a light theme.

THEME_DARK 

Force a dark theme.

◆ TriggerMode

enum class Dso::TriggerMode
strong

The different triggering modes.

Enumerator
AUTO 

Automatic without trigger event.

NORMAL 

Normal hardware trigger (or software trigger) mode.

SINGLE 

Stop after the first trigger event.

ROLL 

Free running without any trigger.

◆ WindowFunction

enum class Dso::WindowFunction : int
strong

The supported window functions. These are needed for spectrum analysis and are applied to the sample values before calculating the DFT.

Enumerator
RECTANGULAR 

Rectangular window (aka Dirichlet).

HANN 

Hann window.

HAMMING 

Hamming window.

COSINE 

Cosine window (aka Sine).

LANCZOS 

Lanczos window (aka Sinc).

TRIANGULAR 

Triangular window (Endpoints != 0).

BARTLETT 

Bartlett window (Endpoints == 0).

BARTLETT_HANN 

Bartlett-Hann window.

GAUSS 

Gauss window (sigma = 0.3).

KAISER 

Kaiser window (alpha = 3.0).

BLACKMAN 

Blackman window (alpha = 0.16).

NUTTALL 

Nuttall window, cont. first deriv.

BLACKMAN_HARRIS 

Blackman-Harris window.

BLACKMAN_NUTTALL 

Blackman-Nuttall window.

FLATTOP 

Flat top window.

Function Documentation

◆ couplingString()

QString Dso::couplingString ( Coupling coupling)

Return string representation of the given channel coupling.

Parameters
couplingThe ::Coupling that should be returned as string.
Returns
The string that should be used in labels etc.

◆ getMathMode()

template<class T>
MathMode Dso::getMathMode ( T & t)
inline

◆ graphFormatString()

QString Dso::graphFormatString ( GraphFormat format)

Return string representation of the given graph format.

Parameters
formatThe ::GraphFormat that should be returned as string.
Returns
The string that should be used in labels etc.

◆ mathChannelsUsed()

unsigned Dso::mathChannelsUsed ( MathMode mode)

◆ mathModeString()

QString Dso::mathModeString ( MathMode mode)

Return string representation of the given math mode.

Parameters
modeThe ::MathMode that should be returned as string.
Returns
The string that should be used in labels etc.

◆ mathModeUnit()

Unit Dso::mathModeUnit ( MathMode mode)

◆ slopeString()

QString Dso::slopeString ( Slope slope)

Return string representation of the given trigger slope.

Parameters
slopeThe ::Slope that should be returned as string.
Returns
The string that should be used in labels etc.

◆ triggerModeString()

QString Dso::triggerModeString ( TriggerMode mode)

Return string representation of the given trigger mode.

Parameters
modeThe ::TriggerMode that should be returned as string.
Returns
The string that should be used in labels etc.

◆ windowFunctionString()

QString Dso::windowFunctionString ( WindowFunction windowFunction)

Return string representation of the given window function.

Parameters
windowFunctionThe ::WindowFunction that should be returned as string.
Returns
The string that should be used in labels etc.

Variable Documentation

◆ GraphFormatEnum

◆ LastBinaryMathMode

const auto Dso::LastBinaryMathMode = MathMode::GREAT_CH2_CH1

◆ LastMathMode

const auto Dso::LastMathMode = MathMode::TRIG_CH2

◆ LastWindowFunction

const auto Dso::LastWindowFunction = WindowFunction::FLATTOP

◆ MathModeEnum

◆ SlopeEnum

◆ TriggerModeEnum

◆ WindowFunctionEnum