|
DynExp
Highly flexible laboratory automation for dynamically changing experiments.
|
Enumerations | |
| enum class | UnitType { Arbitrary , LogicLevel , Counts , Volt , Ampere , Power_W , Power_dBm , Index , Time_s , Time_ms , Time_us , Time_ns , Time_ps , Freq_Hz , Freq_kHz , Freq_MHz , Freq_GHz , Freq_THz , Inv_cm , Wavelength_nm , TperSqrtHz , Unitless , UnitlessInt } |
| Units which can be used with DynExp instruments. More... | |
Functions | |
| bool | IsIntegerUnit (UnitType Unit) |
Checks whether Unit implies integer values. | |
| bool | IsIntensityUnit (UnitType Unit) |
Checks whether Unit is an intensity-like unit. | |
| bool | IsTimeUnit (UnitType Unit) |
Checks whether Unit is a time-like unit. | |
| bool | IsTimeUnitStrict (UnitType Unit) |
Checks whether Unit is a time unit (excluding UnitType::Index). | |
| bool | IsIndexUnit (UnitType Unit) |
Checks whether Unit is a sample index unit (UnitType::Index). | |
| bool | IsFrequencyUnit (UnitType Unit) |
Checks whether Unit is a frequency-like unit. | |
| const char * | UnitCategoryToStr (UnitType Unit) |
| Returns a descriptive string of the given unit's category (e.g. 'intensity'). | |
| const char * | UnitTypeToStr (UnitType Unit) |
| Returns a descriptive string of the given unit's type (e.g. 'dBm'). | |
| std::string | UnitToStr (UnitType Unit) |
| Returns a descriptive string of a respective unit category and type to be e.g. used in plots. | |
Variables | |
| static constexpr double | SpeedOfLight = 2.99792458e8 |
| Speed of light in vacuum in m/s. | |
|
strong |
Units which can be used with DynExp instruments.
gRPCInstrument.h and DynExpInstr::ToProtoIntensityUnitType(DynExp::Units::UnitType) in gRPCInstrument.h and DynExpInstr::ToDataStreamInstrumentUnitType(DynExpProto::Common::IntensityUnitType) in NetworkDataStreamInstrument.h and DynExpInstr::ToLaserUnitType(DynExpProto::Common::FrequencyUnitType) in NetworkLaser.h and DynExpInstr::ToLaserUnitType(DynExpProto::Common::IntensityUnitType) in NetworkLaser.h and DynExpInstr::ToSpectrometerUnitType(DynExpProto::Common::FrequencyUnitType) in NetworkSpectrometer.h and DynExpInstr::ToSpectrometerUnitType(DynExpProto::Common::IntensityUnitType) in NetworkSpectrometer.h and FrequencyUnitType enumeration in Common.proto and IntensityUnitType enumeration in Common.proto. | bool DynExp::Units::IsFrequencyUnit | ( | UnitType | Unit | ) |
| bool DynExp::Units::IsIndexUnit | ( | UnitType | Unit | ) |
Checks whether Unit is a sample index unit (UnitType::Index).
| Unit | Unit type as used by DynExp instruments. |
Unit is a sample index unit, false otherwise. | bool DynExp::Units::IsIntegerUnit | ( | UnitType | Unit | ) |
| bool DynExp::Units::IsIntensityUnit | ( | UnitType | Unit | ) |
| bool DynExp::Units::IsTimeUnit | ( | UnitType | Unit | ) |
| bool DynExp::Units::IsTimeUnitStrict | ( | UnitType | Unit | ) |
Checks whether Unit is a time unit (excluding UnitType::Index).
| Unit | Unit type as used by DynExp instruments. |
Unit is a time, false otherwise. | const char * DynExp::Units::UnitCategoryToStr | ( | UnitType | Unit | ) |
| std::string DynExp::Units::UnitToStr | ( | UnitType | Unit | ) |
| const char * DynExp::Units::UnitTypeToStr | ( | UnitType | Unit | ) |