![]() |
THM1176InstrumentManager
1.0
Qt Object abstraction for Metrolab THM1176
|
The THM1176 Instrument Manager is a high-level Qt Object abstraction of the Metrolab Three-axis Hall Magnetometer THM1176 / Three-axis Fluxgate Magnetometer TFM1186.
The THM1176 Instrument Manager consists of three objects, running in different threads:
The user only has to worry about the public interface; the two other objects are created and destroyed automatically.
The Manager relies on Qt for the multi-threading insfrastructure, and on the THM1176 C++ API to communicate with the instrument.
The public interface of the THM1176 Instrument Manager consists of the methods of the MTL::CTHM1176InstrumentManager class. These fall into three categories:
The public interface of the THM1176 Instrument Manager is summarized in the tables below.
Method type | Name | Parameters |
---|---|---|
Slot | Start | (void) |
Slot | Stop | (void) |
Method type | Name | Parameters |
---|---|---|
Property: Get, Notify | InstrumentList | (CResourceList) |
Property: Get, Set, Notify | CurrentInstrument | (tResourceName) |
Property: Get, Set, Notify | OperatingMode | (eTHM1176OperatingMode) |
Property: Get, Notify | Measurement | (CMeasurement) |
Property: Get, Notify | ErrorList | (CErrorList) |
Slot | SendTrigger | (void) |
Method type | Name | Parameters |
---|---|---|
Property: Get, Notify | Identification | (sIdentifier) |
Property: Get, Notify | RangeList | (CFluxList) |
Property: Get, Notify | UnitsList | (CTHM1176UnitsList) |
Property: Get, Notify | DivisorList | (CDivisorList) |
Property: Get, Notify | AveragingParmBounds | (sAveraging<sBoundedParm>) |
Property: Get, Notify | TriggerParmBounds | (sInputTrigger<sBoundedParm>) |
Property: Get, Notify | RangeParmBounds | (sRange<sBoundedParm>) |
Method type | Name | Parameters |
---|---|---|
Property: Get, Set, Notify | AveragingParms | (sAveraging<uParm>) |
Property: Get, Set, Notify | TriggerParms | (sInputTrigger<uParm>) |
Property: Get, Set, Notify | OutputSelect | (sArbitraryMeasurements) |
Property: Get, Set, Notify | SleepParm | (bool) |
Property: Get, Set, Notify | Units | (eTHM1176Units) |
Property: Get, Set, Notify | RangeParms | (sRange<uParm>) |
Property: Get, Set, Notify | CommFormat | (eCommunicationFormat) |
Method type | Name | Parameters |
---|---|---|
- | SetCalibrationOverride | (bool) |
- | GetImmediateMeasurementPeriod | (sAveraging<uParm>, F64) |
- | ConvertTimestamp | (U64, CAbsoluteTimestamp) |
- | ReadInformationDates | (QDateTime, QDateTime) |
Wait for the:
Invoke the corresponding "Get" slots to retrieve the same instrument information at any time.
Invoke the:
Invoke the corresponding "Get" slots to obtain the current values of any of the above parameters, or wait for the corresponding "Notify" signal to be notified of value changes.
Any of the Instrument Manager tests can serve as example: THM1176IM_Test01_Connect, THM1176IM_Test02_Measure or THM1176IM_Test03_Parameters.