
#idString HKJ,ThermoSensor
#name HKJ ThermoSensor
#handle TS
#port comnobaud

; Strings to configure device in different modes
; First parameter must match a #value (4 parameter) and second parameter must match what #askMode returns
; First parameter is also used in shortcut menu
;#cmdMode 

;#askMode enable?

#cmdMode Sensor1 1
enable 1

#cmdMode Sensor2 2
enable 2

#cmdMode BothSensors 3
enable 3

; Setup menu functions
; The parameters on the first line is: type name page 
; Settings on the following lines are:
; read: SCPI to read value from device, is used to synchronize when opening setup page or setting equal named fields. Not always used
; readformat: Parse read value.
; write: Send the value to device, this field is used in combination with data fields in the details to send updates to device.
; tip: Add this tip to all components for this input field.


#cmdSetup number Offset_1
:read: offset? 1
:write: offset 1
:tip: Temperature offset for cold junction compensation
°C -8 7.94

#cmdSetup number Offset_2
:read: offset? 2
:write: offset 2
:tip: Temperature offset for cold junction compensation
°C -8 7.94

#cmdSetup comboboxhot Sensor_1
:write: sensor 1
:read: sensor? 1
Type_B B
Type_E E
Type_J J
Type_K K
Type_N N
Type_R R
Type_S S
Type_T T
Voltage_1_(x8) x8
Voltage_2_(x32) x32

#cmdSetup comboboxhot Sensor_2
:write: sensor 2
:read: sensor? 2
Type_B B
Type_E E
Type_J J
Type_K K
Type_N N
Type_R R
Type_S S
Type_T T
Voltage_1_(x8) x8
Voltage_2_(x32) x32


#cmdSetup comboboxhot Samples_1
:write: samples 1
:read: samples? 1
Direct 0
2_samples 1
4_samples 2
8_samples 3
16_samples 4
16_samples_2_running 5
16_samples_4_running 6
16_samples_8_running 7
16_samples_16_running 8
16_samples_32_running 9
16_samples_64_running 10


#cmdSetup comboboxhot Samples_2
:write: samples 2
:read: samples? 2
Direct 0
2_samples 1
4_samples 2
8_samples 3
16_samples 4
16_samples_2_running 5
16_samples_4_running 6
16_samples_8_running 7
16_samples_16_running 8
16_samples_32_running 9
16_samples_64_running 10


#cmdSetup number Cold_junction_1
:read: cjtemp? 1
:readformat: ux
:write: cjtemp 1
:tip: Used to set a manual cold junction compensation, displayed value is current  cj temperature
°C -64 128

#cmdSetup number Cold_junction_2
:read: cjtemp? 2
:readformat: ux
:write: cjtemp 2
:tip: Used to set a manual cold junction compensation, displayed value is current  cj temperature
°C -64 128


#cmdSetup buttons Cold_junction_auto
:tip: Press these buttons to activate automatic cold junction compensation
:updatedelayed: 2 Cold_junction_1 Cold_junction_2
1 cjtemp_1_a
2 cjtemp_2_a



#cmdSetup numberDual Limits_1
:read: limits? 1
:write: limits 1
:tip: Limits, when output is outside an error is raised (Display shows RANGE)
°C -2048 2047.94 Low
°C -2048 2047.94 High

#cmdSetup numberDual Limits_2
:read: limits? 2
:write: limits 2
:tip: Limits, when output is outside an error is raised (Display shows RANGE)
°C -2048 2047.94 Low
°C -2048 2047.94 High


#cmdSetup buttons Save_config
Save saveConfig


