Dokit
Native Qt library for Pokit devices
Loading...
Searching...
No Matches
PokitMeter Namespace Reference

Encapsulates details specific to Pokit Meter devices. More...

Enumerations

enum class  CurrentRange : quint8 {
  _10mA = 0 , _30mA = 1 , _150mA = 2 , _300mA = 3 ,
  _2A = 4 , AutoRange = 255
}
 Values supported by the Pokit Meter's Range attributes in *Current modes. More...
 
enum class  ResistanceRange : quint8 {
  _160 = 0 , _330 = 1 , _890 = 2 , _1K5 = 3 ,
  _10K = 4 , _100K = 5 , _470K = 6 , _1M = 7 ,
  AutoRange = 255
}
 Values supported by the Pokit Meter's Range attributes in Resistance mode. More...
 
enum class  VoltageRange : quint8 {
  _300mV = 0 , _2V = 1 , _6V = 2 , _12V = 3 ,
  _30V = 4 , _60V = 5 , AutoRange = 255
}
 Values supported by the Pokit Meter's Range attributes in *Voltage modes. More...
 

Functions

QTPOKIT_EXPORT QString toString (const CurrentRange &range)
 Returns range as a user-friendly string.
 
QTPOKIT_EXPORT QVariant maxValue (const CurrentRange &range)
 Returns the maximum value for range in (integer) microamps, or the string "Auto".
 
QTPOKIT_EXPORT QString toString (const ResistanceRange &range)
 Returns range as a user-friendly string.
 
QTPOKIT_EXPORT QVariant maxValue (const ResistanceRange &range)
 Returns the maximum value for range in (integer) ohms, or the string "Auto".
 
QTPOKIT_EXPORT QString toString (const VoltageRange &range)
 Returns range as a user-friendly string.
 
QTPOKIT_EXPORT QVariant maxValue (const VoltageRange &range)
 Returns the maximum value for range in (integer) millivolts, or the string "Auto".
 

Detailed Description

Encapsulates details specific to Pokit Meter devices.

Enumeration Type Documentation

◆ CurrentRange

enum class PokitMeter::CurrentRange : quint8
strong

Values supported by the Pokit Meter's Range attributes in *Current modes.

Enumerator
_10mA 

Up to 10mA.

_30mA 

Up to 30mA.

_150mA 

Up to 150mA.

_300mA 

Up to 300mA.

_2A 

Up to 2A.

AutoRange 

Auto-range.

◆ ResistanceRange

enum class PokitMeter::ResistanceRange : quint8
strong

Values supported by the Pokit Meter's Range attributes in Resistance mode.

Enumerator
_160 

Up to 160Ω.

_330 

Up to 330Ω.

_890 

Up to 890Ω.

_1K5 

Up to 1.5KΩ.

_10K 

Up to 10KΩ.

_100K 

Up to 100KΩ.

_470K 

Up to 470KΩ.

_1M 

Up to 1MΩ.

AutoRange 

Auto-range.

◆ VoltageRange

enum class PokitMeter::VoltageRange : quint8
strong

Values supported by the Pokit Meter's Range attributes in *Voltage modes.

Enumerator
_300mV 

Up to 300mV.

_2V 

Up to 2V.

_6V 

Up to 6V.

_12V 

Up to 12V.

_30V 

Up to 30V.

_60V 

Up to 60V DC (42V AC).

AutoRange 

Auto-range.

Function Documentation

◆ maxValue() [1/3]

QVariant PokitMeter::maxValue ( const CurrentRange range)

Returns the maximum value for range in (integer) microamps, or the string "Auto".

If range is not a known valid value, then an null QVariant is returned.

Here is the call graph for this function:

◆ maxValue() [2/3]

QVariant PokitMeter::maxValue ( const ResistanceRange range)

Returns the maximum value for range in (integer) ohms, or the string "Auto".

If range is not a known valid value, then an null QVariant is returned.

Here is the call graph for this function:

◆ maxValue() [3/3]

QVariant PokitMeter::maxValue ( const VoltageRange range)

Returns the maximum value for range in (integer) millivolts, or the string "Auto".

If range is not a known valid value, then an null QVariant is returned.

Here is the call graph for this function: