Dokit
Internal development documentation
|
Encapsulates convenience functions for working with voltage ranges. More...
Functions | |
QString | toString (const PokitProduct product, const quint8 range) |
Returns product's current range as a human-friendly string. | |
QVariant | maxValue (const PokitProduct product, const quint8 range) |
Returns the maximum value for product's range in (integer) millivolts, or the string "Auto". | |
Encapsulates convenience functions for working with voltage ranges.
QTPOKIT_EXPORT QVariant VoltageRange::maxValue | ( | const PokitProduct | product, |
const quint8 | range ) |
Returns the maximum value for product's range in (integer) millivolts, or the string "Auto".
If range is not a known valid value, then an null QVariant is returned.
Definition at line 297 of file pokitproducts.cpp.
References QString::arg(), PokitPro::maxValue(), PokitMeter::maxValue(), PokitMeter, PokitPro, and QCoreApplication::translate().
Referenced by DataLoggerService::maxValue(), DsoService::maxValue(), and MultimeterService::maxValue().
QTPOKIT_EXPORT QString VoltageRange::toString | ( | const PokitProduct | product, |
const quint8 | range ) |
Returns product's current range as a human-friendly string.
Definition at line 277 of file pokitproducts.cpp.
References QString::arg(), PokitMeter, PokitPro, PokitPro::toString(), PokitMeter::toString(), and QCoreApplication::translate().
Referenced by DataLoggerService::toString(), DsoService::toString(), and MultimeterService::toString().