Temperature#
TODO: #X
(example calib.dat, scan 11) - Temperature Set Point
The SPEC #X
control line 1 for users to describe
temperature. 2 This control line may be used in a scan. The canonical
representation shows a setpoint in K and then C:
1#X 0 -273.15 (Temperature Setpoint in K and C)
But, the documentation is vague about the expected format and users may present
files where #X
provides different temperatures, such as these examples:
1#X Control: 298.873K Sample: 299.036K
2#X 10.00Kohm (25.0C)
Internally, the plugin will test several formats and parse (using the first format that does not fail) for the two values shown in the next table.
SPEC term |
canonical meaning |
---|---|
|
The set point of the controller in ohms, volts, etc. |
|
The temperature from which the set point is derived. |
These values will be reported in the NXentry
3 group
and also linked into a new temperature
subgroup 4 of the
sample
, as shown below:
1#X Control: 298.873K Sample: 299.036K
2
3 DEGC_SP:NX_FLOAT64 = 299.036
4 TEMP_SP:NX_FLOAT64 = 298.873
5 /SCAN/sample/temperature:NXlog
6 value --> /SCAN/DEGC_SP
7 target_value --> /SCAN/TEMP_SP
As an alternative, the NXsensor 5 base class has additional fields to describe temperature sensors but the additional information is not available in a SPEC data file.