 |
THM1176InstrumentManager
1.0
Qt Object abstraction for Metrolab THM1176
|
Go to the documentation of this file.
24 namespace THM1176Types
157 std::ostream &
operator<<(std::ostream & Stream,
const sStatusRegister & RegDef);
158 std::ostream &
operator<<(std::ostream & Stream,
const RegisterList & RegList);
159 std::ostream &
operator<<(std::ostream & Stream,
const StatusValues & StatusList);
160 std::ostream &
operator<<(std::ostream & Stream,
const uStatusByte & StatusByte);
161 std::ostream &
operator<<(std::ostream & Stream,
const uStandardEvent & StdEventReg);
162 std::ostream &
operator<<(std::ostream & Stream,
const uOPERation & OperReg);
163 std::ostream &
operator<<(std::ostream & Stream,
const uQUEStionable & QuestReg);
244 template <
class DataType>
279 return (!
operator==(other));
293 template <
class DataType>
302 template <
template<
class>
class ParmType>
330 std::ostream &
operator<<(std::ostream & Stream,
const sVersion & Version);
359 std::ostream &
operator<<(std::ostream & Stream,
const sIdentifier & ID);
365 template <
template<
class>
class ParmType>
386 return (!
operator==(other));
389 std::ostream &
operator<<(std::ostream & Stream,
const sAveraging<uParm> & AvgParm);
390 std::ostream &
operator<<(std::ostream & Stream,
const sAveraging<sBoundedParm> & AvgParm);
403 template <
template<
class>
class ParmType>
434 return (!
operator==(other));
438 std::ostream &
operator<<(std::ostream & Stream,
const sInputTrigger<uParm> & TrigParm);
439 std::ostream &
operator<<(std::ostream & Stream,
const sInputTrigger<sBoundedParm> & TrigParm);
456 template <
template<
class>
class ParmType>
466 sRange(
bool A = { }, ParmType<tFlux> R = { })
483 return (!
operator==(other));
486 std::ostream &
operator<<(std::ostream & Stream,
const sRange<uParm> & RangeParm);
487 std::ostream &
operator<<(std::ostream & Stream,
const sRange<sBoundedParm> & RangeParm);
503 sFile(
size_t S = 0, std::string P =
"", std::string T =
"")
513 std::ostream &
operator<<(std::ostream & Stream,
const sFile & FileInfo);
544 std::time_t
seconds(
void)
const;
616 std::ostream &
operator<<(std::ostream & Stream,
const sArbitraryMeasurements & MeasSpec);
617 std::ostream &
operator<<(std::ostream & Stream,
const sMeasurementConditions & MeasCond);
U8 PowerOn
THM1176 has been powered up.
bool UseCalibration
Use calibration data.
sError(I32 Code=0, std::string Description="", std::string Context="")
Constructor.
@ kInputTrigSrcBus
Bus trigger: start measurement upon USB trigger message.
Union to access the Status Byte as integer or bit fields.
std::string Type
File type ("ASCII" or "BINARY").
eStatusRegisterType Type
SCPI register type.
List of SCPI status registers.
std::string Name
Version name.
U8 QueryError
Error in preceding query.
ParmType< tFlux > Range
Measurement range, if auto-ranging is not enabled.
Abstract IEEE488 instrument class: type definitions.
@ kStatusOperationStatusRegister
Operation Status Register.
bool operator==(sAveraging other) const
Equality operator.
eStatusRegisterSet
Enumeration of SCPI status register sets.
eUnits
Enumeration of possible measurement units.
@ kStatusCondition
Condition register.
void clear()
Clear to default values.
float F32
32-bit floating-point number.
sAveraging< uParm > AveragingParms
Averaging parameters.
@ kStatusEnable
Enable register.
bool operator!=(sFile other) const
Inequality operator.
struct MTL::Instrument::THM1176Types::uStandardEvent::sStandardEvent StandardEvent
Access the Standard Event Status Register as bit fields.
unsigned long long U64
64-bit unsigned integer.
bool operator!=(sArbitraryMeasurements other) const
Inequality operator.
bool operator!=(sAveraging other) const
Inequality operator.
U8 OSB
OPERation status summary bit.
DataType uParm
Parameter template, with only current value.
eStatusRegisterType
Enumeration of SCPI status register types.
U16 RawOPER
Access the Operation Status Register as unsigned integer.
bool operator!=(sVersion other) const
Inequality operator.
U16 NA10_15
Not Available.
struct MTL::Instrument::THM1176Types::uStatusByte::sStatusByte StatusByte
Access the Status Byte as bit fields.
Specify the measurement data to be returned.
bool operator==(sBoundedParm other) const
Equality operator.
Parameter template, with current/min/max/default values.
bool GetEstimatedPeriod(F64 &Period)
Estimate the measurement period from this timestamp list, by means of a least-squares fit.
Summary of the parameters used to make a measurement.
void clear(void)
Clear to default (zero).
U8 ExecutionError
Error detected during command execution.
sIdentifier(std::string Mfr="", std::string Mdl="", U32 SN=0, struct sVersion EVsn={ }, struct sVersion PVsn={ }, struct sVersion FVsn={ })
Constructor.
sVersion(U8 Maj=0, U8 Min=0)
Constructor.
void clear(void)
Clear to default (zeroes).
std::string Description
Error description.
U16 Frequency
Acquisition buffer or the timed trigger has been overrun.
Measurement range parameter.
U8 ESB
Standard Event Status Register summary bit.
Sample parameter template.
std::string Path
File path.
ParmType< F32 > ExampleF32
Example of an F32 element.
@ kComFormatAscii
Human-legible text.
U16 RawQUES
Access the Questionable Status Register as unsigned integer.
void clear()
Clear to default values.
bool ExampleState
Example of a boolean element.
bool operator!=(sBoundedParm other) const
Inequality operator.
U32 NoMeasurements
Return this number of measurements.
U8 CommandError
Error in preceding command.
List of divisors, one per measurement unit.
struct sVersion FirmwareVersion
Version numbers of firmware.
void clear()
Clear to default values.
eStatusRegisterSet Set
SCPI register set.
CAbsoluteTimestamp operator-(CAbsoluteTimestamp a, CAbsoluteTimestamp b)
Timestamp subtraction operator.
bool operator!=(sError other) const
Inequality operator.
Instrument's identification string - parsed version.
U16 WaitingForTRIGger
Waiting for trigger.
CAbsoluteTimestamp operator+(CAbsoluteTimestamp a, CAbsoluteTimestamp b)
Timestamp addition operator.
bool Auto
Auto-ranging enabled.
eCommunicationFormat
Enumeration of possible formats for returned data.
U16 Overrange
Measurement was over-range.
U8 Minor
Minor version number.
void clear(void)
Clear to default values.
std::ostream & operator<<(std::ostream &Stream, const eStatusRegisterSet &RegSet)
Status register set stream output.
@ kStatusQuestionableStatusRegister
Questionable Status Register.
DataType Val
Current value.
@ kStandardEventStatusRegister
Standard Event Status Register.
bool Bz
Return the flux density Z-component.
eInputTriggerSource
Enumeration of possible trigger sources.
sMeasurementConditions(sAveraging< uParm > AvgParms={ }, sInputTrigger< uParm > TrigParms={ }, bool UseCal=false)
Constructor.
bool operator==(sVersion other) const
Equality operator.
bool operator==(sIdentifier other) const
Equality oeprator.
@ kInputTrigSrcImmediate
Immediate trigger: start measurement immediately after previous one completes.
U8 RQS
ReQuest for Service.
bool operator!=(sMeasurementConditions other) const
Inequality operator.
@ kStatusByte
Status Byte.
bool operator!=(CAbsoluteTimestamp other)
Inequality operator.
U64 nanoseconds(void) const
Fetch the number of nanoseconds.
@ kStatusEvent
Event register.
U8 EAV
Error Available in Error / Event Queue.
std::string Manufacturer
Manufacturer name ("Metrolab Technology SA")
std::vector< sFile > tFileList
List of directory entries.
bool operator==(sMeasurementConditions other) const
Equality operator.
bool Timestamp
Return the timestamp.
int I32
32-bit signed integer.
Timestamp for a measurement.
U16 RawSTB
Access the Status Byte as unsigned integer.
Union to access the Questionable Status Register as integer or bit fields.
std::string Model
Model name (e.g. "THM1176-MF")
ParmType< F64 > ExampleF64
Example of an F64 element.
List of values returned for several SCPI status registers.
std::string Context
SCPI commands being executed at time of error.
static const U64 NS_PER_SEC
sRange(bool A={ }, ParmType< tFlux > R={ })
Constructor.
sAveraging(ParmType< U16 > NPts={ })
Constructor.
U16 RANGing
Changing range.
sArbitraryMeasurements(bool Bx=false, bool By=false, bool Bz=false, bool Temp=false, bool Time=false, U32 NMeas=0)
Constructor.
CAbsoluteTimestamp(std::time_t Seconds=0, U64 Nanoseconds=0)
Constructor.
@ kMHzp
Equivalent proton NMR resonant frequency, in Mega-Hertz.
struct MTL::Instrument::THM1176Types::uQUEStionable::sQUEStionable QUEStionable
Access the Questionable Status Register as bit fields.
U8 Major
Major version number.
Union to access the Operation Status Register as integer or bit fields.
sFile(size_t S=0, std::string P="", std::string T="")
Constructor.
U8 DeviceDependentError
Errors specific to the THM1176, including internal errors.
Complete identification of a SCPI status register.
List of measurement units.
U16 CALibrating
Measuring zero-offset.
sInputTrigger< uParm > TriggerParms
Trigger parameters.
U8 OperationComplete
*OPC has flagged operation complete
@ kComFormatInteger
Binary (32-bit integers)
List of flux density values.
bool operator==(sError other) const
Equality operator.
Error returned by the instrument.
bool operator==(sFile other) const
Equality operator.
bool Temperature
Return the sensor temperature.
Access the Status Byte as bit fields.
U16 MEASuring
Measuring magnetic field strength.
bool operator!=(sRange other) const
Inequality operator.
struct MTL::Instrument::THM1176Types::uOPERation::sOPERation OPERation
Access the Operation Status Register as bit fields.
Access the Questionable Status Register as bit fields.
unsigned char U8
Unsigned byte.
U16 RawSE
Access the Standard Event Status Register as unsigned integer.
List of errors returned by the instrument.
unsigned short U16
16-bit unsigned integer.
Platform Dependent Definitions.
struct sVersion ElectronicsVersion
Version numbers of electronics.
bool operator==(CAbsoluteTimestamp other)
Equality operator.
Access the Operation Status Register as bit fields.
sBoundedParm(DataType Val=0, DataType Min=0, DataType Max=0, DataType Def=0)
Constructor.
bool Bx
Return the flux density X-component.
double F64
64-bit floating-point number.
Access the Standard Event Status Register as bit fields.
sStatusRegister(eStatusRegisterSet S={ }, eStatusRegisterType T={ })
Constructor.
size_t Size
File size, in bytes.
Directory entry in the instrument's file system.
unsigned int U32
32-bit unsigned integer.
bool operator==(sRange other) const
Equality operator.
DataType Def
Default value.
ParmType< U16 > NoPoints
Number of points in block average.
void clear(void)
Clear to default.
void clear(void)
Clear the parameter to default values.
U8 QSB
QUEStionable status summary bit.
Major and minor version numbers.
std::time_t seconds(void) const
Fetch the number of seconds.
CAbsoluteTimestamp & operator=(const CAbsoluteTimestamp &Value)
Assignment operator.
void clear(void)
Clear to default values (zeroes)
bool operator==(sArbitraryMeasurements other) const
Equality operator.
@ kComFormatPacked2Byte
Binary packed: first field value as I32, remainder deltas as I16.
struct sVersion ProbeVersion
Version numbers of probe.
bool By
Return the flux density Y-component.
Union to access the Standard Event Status Register as integer or bit fields.
sBoundedParm & operator=(const DataType &scalar)
Set value, min, max and default to given value.
bool operator!=(sIdentifier other) const
Inequality operator.
U32 SerialNumber
Serial number.
@ kComFormatPacked1Byte
Binary packed: first field value as I32, remainder deltas as I8.
F32 tFlux
Flux density value, as 32-bit floating-point number.
@ kInputTrigSrcTimer
Timed trigger: start measurement at regular intervals.