diff --git a/pytec/pytec/gui/view/param_tree.json b/pytec/pytec/gui/view/param_tree.json index fe791da..06b68a5 100644 --- a/pytec/pytec/gui/view/param_tree.json +++ b/pytec/pytec/gui/view/param_tree.json @@ -1,417 +1,417 @@ { - "ctrl_panel":[ - { - "name":"temperature", - "title": "Temperature", - "type":"float", - "format":"{value:.4f} °C", - "readonly":true, - "tip": "The measured temperature, according to the B-Parameter equation" - }, - { - "name":"tec_i", - "title":"Current through TEC", - "type":"float", - "siPrefix":true, - "suffix":"A", - "decimals":6, - "readonly":true, - "tip": "The measured current going through the TEC" - }, - { - "name":"output", - "title":"Output Settings", - "expanded":true, - "type":"group", - "tip": "Settings of the output through to the load", - "children":[ + "ctrl_panel": [ + { + "name": "temperature", + "title": "Temperature", + "type": "float", + "format": "{value:.4f} °C", + "readonly": true, + "tip": "The measured temperature, according to the B-Parameter equation" + }, + { + "name": "tec_i", + "title": "Current through TEC", + "type": "float", + "siPrefix": true, + "suffix": "A", + "decimals": 6, + "readonly": true, + "tip": "The measured current going through the TEC" + }, + { + "name": "output", + "title": "Output Settings", + "expanded": true, + "type": "group", + "tip": "Settings of the output through to the load", + "children": [ { - "name":"i_set", - "title":"Set Current (mA)", - "type":"float_auto", - "value":0, - "step":100, - "limits":[ - -2000, - 2000 - ], - "decimals":6, - "compactHeight":false, - "param":[ - "pwm", - "$ch", - "i_set" - ], - "auto":false, - "auto_label":"PID", - "auto_tip":"Control by PID", - "auto_param":[ - "pwm", - "$ch", - "pid" - ], - "tip": "", - "lock":false - }, - { - "name":"limits", - "title":"Limits", - "expanded":true, - "type":"group", - "children":[ - { - "name":"max_i_pos", - "title":"Max Cooling Current (mA)", - "type":"float", - "value":0, - "step":100, - "decimals":6, - "compactHeight":false, - "limits":[ - 0, - 2000 - ], - "param":[ - "pwm", - "$ch", - "max_i_pos" - ], - "tip": "The maximum cooling (+ve) current through the output pins", - "lock":false - }, - { - "name":"max_i_neg", - "title":"Max Heating Current (mA)", - "type":"float", - "value":0, - "step":100, - "decimals":6, - "compactHeight":false, - "limits":[ - 0, - 2000 - ], - "param":[ - "pwm", - "$ch", - "max_i_neg" - ], - "tip": "The maximum heating (-ve) current through the output pins", - "lock":false - }, - { - "name":"max_v", - "title":"Max Absolute Voltage (V)", - "type":"float", - "value":0, - "step":0.1, - "limits":[ - 0, - 5 - ], - "siPrefix":true, - "compactHeight":false, - "param":[ - "pwm", - "$ch", - "max_v" - ], - "tip": "The maximum voltage across the output pins", - "lock":false - } - ] - } - ] - }, - { - "name":"thermistor", - "title":"Thermistor Settings", - "expanded":true, - "type":"group", - "tip": "Settings of the connected Thermistor, including for the B-Parameter conversion.", - "children":[ - { - "name":"t0", - "title":"T₀ (°C)", - "type":"float", - "value":25, - "step":0.1, - "limits":[ - -100, - 100 - ], - "format":"{value:.4f}", - "compactHeight":false, - "param":[ - "s-h", - "$ch", - "t0" - ], - "tip": "The origin temperature for the B-Parameter equation", - "lock":false - }, - { - "name":"r0", - "title":"R₀ (Ω)", - "type":"float", - "value":10000, - "step":1, - "siPrefix":true, - "compactHeight":false, - "param":[ - "s-h", - "$ch", - "r0" - ], - "tip": "The origin resistance for the B-Parameter equation", - "lock":false - }, - { - "name":"b", - "title":"B (K)", - "type":"float", - "value":3950, - "step":1, - "decimals":4, - "compactHeight":false, - "param":[ - "s-h", - "$ch", - "b" - ], - "tip": "The B-Parameter", - "lock":false - }, - { - "name":"rate", - "title":"Postfilter Rate", - "type":"list", - "value":16.67, - "param":[ - "postfilter", - "$ch", - "rate" - ], - "limits":{ - "Off":null, - "16.67 Hz":16.67, - "20 Hz":20.0, - "21.25 Hz":21.25, - "27 Hz":27.0 - }, - "tip": "Filter some frequencies on the SENS input", - "lock":false - } - ] - }, - { - "name":"pid", - "title":"PID Settings", - "expanded":false, - "type":"group", - "tip": "", - "children":[ + "name": "i_set", + "title": "Set Current (mA)", + "type": "float_auto", + "value": 0, + "step": 100, + "limits": [ + -2000, + 2000 + ], + "decimals": 6, + "compactHeight": false, + "param": [ + "pwm", + "$ch", + "i_set" + ], + "auto": false, + "auto_label": "PID", + "auto_tip": "Control by PID", + "auto_param": [ + "pwm", + "$ch", + "pid" + ], + "tip": "", + "lock": false + }, { - "name":"target", - "title":"Setpoint (°C)", - "type":"float", - "value":25, - "step":0.1, - "limits":[ - -273, - 300 - ], - "format":"{value:.4f}", - "compactHeight":false, - "param":[ - "pid", - "ch", - "target" - ], - "tip": "", - "lock":false - }, - { - "name":"kp", - "title":"Kp", - "type":"float", - "step":0.1, - "suffix":"", - "compactHeight":false, - "param":[ - "pid", - "$ch", - "kp" - ], - "tip": "Proportional gain", - "lock":false - }, - { - "name":"ki", - "title":"Ki", - "type":"float", - "step":0.1, - "suffix":"Hz", - "compactHeight":false, - "param":[ - "pid", - "$ch", - "ki" - ], - "tip": "Integral gain", - "lock":false - }, - { - "name":"kd", - "title":"Kd", - "type":"float", - "step":0.1, - "suffix":"s", - "compactHeight":false, - "param":[ - "pid", - "$ch", - "kd" - ], - "tip": "Differential gain", - "lock":false - }, - { - "name":"pid_output_clamping", - "title":"PID Output Clamping", - "expanded":true, - "type":"group", - "tip": "Clamps PID outputs to specified range\nCould be different than output limits", - "children":[ - { - "name":"output_min", - "title":"Minimum (mA)", - "type":"float", - "step":100, - "limits":[ - -2000, - 2000 - ], - "decimals":6, - "compactHeight":false, - "param":[ - "pid", - "$ch", - "output_min" - ], - "tip": "Minimum PID output", - "lock":false - }, - { - "name":"output_max", - "title":"Maximum (mA)", - "type":"float", - "step":100, - "limits":[ - -2000, - 2000 - ], - "decimals":6, - "compactHeight":false, - "param":[ - "pid", - "$ch", - "output_max" - ], - "tip": "Maximum PID output", - "lock":false - } - ] - }, - { - "name":"pid_autotune", - "title":"PID Autotune", - "expanded":false, - "type":"group", - "tip": "Automatically tune PID parameters", - "children":[ - { - "name":"target_temp", - "title":"Target Temperature (°C)", - "type":"float", - "value":20, - "step":0.1, - "format":"{value:.4f}", - "compactHeight":false, - "pid_autotune":[ - "target_temp", - "$ch" - ], - "tip": "The target temperature to autotune for" - }, - { - "name":"test_current", - "title":"Test Current (mA)", - "type":"float", - "value":0, - "decimals":6, - "compactHeight":false, - "step":100, - "limits":[ - -2000, - 2000 - ], - "pid_autotune":[ - "test_current", - "$ch" - ], - "tip": "The testing current when autotuning" - }, - { - "name":"temp_swing", - "title":"Temperature Swing (°C)", - "type":"float", - "value":1.5, - "step":0.1, - "prefix":"±", - "format":"{value:.4f}", - "compactHeight":false, - "pid_autotune":[ - "temp_swing", - "$ch" - ], - "tip": "The temperature swing around the target" - }, - { - "name":"lookback", - "title":"Lookback (s)", - "type":"float", - "value":3.0, - "step":0.1, - "format":"{value:.4f}", - "compactHeight":false, - "pid_autotune":[ + "name": "limits", + "title": "Limits", + "expanded": true, + "type": "group", + "children": [ + { + "name": "max_i_pos", + "title": "Max Cooling Current (mA)", + "type": "float", + "value": 0, + "step": 100, + "decimals": 6, + "compactHeight": false, + "limits": [ + 0, + 2000 + ], + "param": [ + "pwm", + "$ch", + "max_i_pos" + ], + "tip": "The maximum cooling (+ve) current through the output pins", + "lock": false + }, + { + "name": "max_i_neg", + "title": "Max Heating Current (mA)", + "type": "float", + "value": 0, + "step": 100, + "decimals": 6, + "compactHeight": false, + "limits": [ + 0, + 2000 + ], + "param": [ + "pwm", + "$ch", + "max_i_neg" + ], + "tip": "The maximum heating (-ve) current through the output pins", + "lock": false + }, + { + "name": "max_v", + "title": "Max Absolute Voltage (V)", + "type": "float", + "value": 0, + "step": 0.1, + "limits": [ + 0, + 5 + ], + "siPrefix": true, + "compactHeight": false, + "param": [ + "pwm", + "$ch", + "max_v" + ], + "tip": "The maximum voltage across the output pins", + "lock": false + } + ] + } + ] + }, + { + "name": "thermistor", + "title": "Thermistor Settings", + "expanded": true, + "type": "group", + "tip": "Settings of the connected Thermistor, including for the B-Parameter conversion.", + "children": [ + { + "name": "t0", + "title": "T₀ (°C)", + "type": "float", + "value": 25, + "step": 0.1, + "limits": [ + -100, + 100 + ], + "format": "{value:.4f}", + "compactHeight": false, + "param": [ + "s-h", + "$ch", + "t0" + ], + "tip": "The origin temperature for the B-Parameter equation", + "lock": false + }, + { + "name": "r0", + "title": "R₀ (Ω)", + "type": "float", + "value": 10000, + "step": 1, + "siPrefix": true, + "compactHeight": false, + "param": [ + "s-h", + "$ch", + "r0" + ], + "tip": "The origin resistance for the B-Parameter equation", + "lock": false + }, + { + "name": "b", + "title": "B (K)", + "type": "float", + "value": 3950, + "step": 1, + "decimals": 4, + "compactHeight": false, + "param": [ + "s-h", + "$ch", + "b" + ], + "tip": "The B-Parameter", + "lock": false + }, + { + "name": "rate", + "title": "Postfilter Rate", + "type": "list", + "value": 16.67, + "param": [ + "postfilter", + "$ch", + "rate" + ], + "limits": { + "Off": null, + "16.67 Hz": 16.67, + "20 Hz": 20.0, + "21.25 Hz": 21.25, + "27 Hz": 27.0 + }, + "tip": "Filter some frequencies on the SENS input", + "lock": false + } + ] + }, + { + "name": "pid", + "title": "PID Settings", + "expanded": false, + "type": "group", + "tip": "", + "children": [ + { + "name": "target", + "title": "Setpoint (°C)", + "type": "float", + "value": 25, + "step": 0.1, + "limits": [ + -273, + 300 + ], + "format": "{value:.4f}", + "compactHeight": false, + "param": [ + "pid", + "ch", + "target" + ], + "tip": "", + "lock": false + }, + { + "name": "kp", + "title": "Kp", + "type": "float", + "step": 0.1, + "suffix": "", + "compactHeight": false, + "param": [ + "pid", + "$ch", + "kp" + ], + "tip": "Proportional gain", + "lock": false + }, + { + "name": "ki", + "title": "Ki", + "type": "float", + "step": 0.1, + "suffix": "Hz", + "compactHeight": false, + "param": [ + "pid", + "$ch", + "ki" + ], + "tip": "Integral gain", + "lock": false + }, + { + "name": "kd", + "title": "Kd", + "type": "float", + "step": 0.1, + "suffix": "s", + "compactHeight": false, + "param": [ + "pid", + "$ch", + "kd" + ], + "tip": "Differential gain", + "lock": false + }, + { + "name": "pid_output_clamping", + "title": "PID Output Clamping", + "expanded": true, + "type": "group", + "tip": "Clamps PID outputs to specified range\nCould be different than output limits", + "children": [ + { + "name": "output_min", + "title": "Minimum (mA)", + "type": "float", + "step": 100, + "limits": [ + -2000, + 2000 + ], + "decimals": 6, + "compactHeight": false, + "param": [ + "pid", + "$ch", + "output_min" + ], + "tip": "Minimum PID output", + "lock": false + }, + { + "name": "output_max", + "title": "Maximum (mA)", + "type": "float", + "step": 100, + "limits": [ + -2000, + 2000 + ], + "decimals": 6, + "compactHeight": false, + "param": [ + "pid", + "$ch", + "output_max" + ], + "tip": "Maximum PID output", + "lock": false + } + ] + }, + { + "name": "pid_autotune", + "title": "PID Autotune", + "expanded": false, + "type": "group", + "tip": "Automatically tune PID parameters", + "children": [ + { + "name": "target_temp", + "title": "Target Temperature (°C)", + "type": "float", + "value": 20, + "step": 0.1, + "format": "{value:.4f}", + "compactHeight": false, + "pid_autotune": [ + "target_temp", + "$ch" + ], + "tip": "The target temperature to autotune for" + }, + { + "name": "test_current", + "title": "Test Current (mA)", + "type": "float", + "value": 0, + "decimals": 6, + "compactHeight": false, + "step": 100, + "limits": [ + -2000, + 2000 + ], + "pid_autotune": [ + "test_current", + "$ch" + ], + "tip": "The testing current when autotuning" + }, + { + "name": "temp_swing", + "title": "Temperature Swing (°C)", + "type": "float", + "value": 1.5, + "step": 0.1, + "prefix": "±", + "format": "{value:.4f}", + "compactHeight": false, + "pid_autotune": [ + "temp_swing", + "$ch" + ], + "tip": "The temperature swing around the target" + }, + { + "name": "lookback", + "title": "Lookback (s)", + "type": "float", + "value": 3.0, + "step": 0.1, + "format": "{value:.4f}", + "compactHeight": false, + "pid_autotune": [ "lookback", "$ch" ], "tip": "Amount of time to lookback" }, - { - "name":"run_pid", - "title":"Run", - "type":"action", - "tip":"Run PID Autotune with above settings" - } - ] - } - ] - }, - { - "name":"save", - "title":"Save to flash", - "type":"action", - "tip":"Save settings to thermostat, applies on reset" - }, - { - "name":"load", - "title":"Load from flash", - "type":"action", - "tip":"Load settings from flash" - } - ] - } \ No newline at end of file + { + "name": "run_pid", + "title": "Run", + "type": "action", + "tip": "Run PID Autotune with above settings" + } + ] + } + ] + }, + { + "name": "save", + "title": "Save to flash", + "type": "action", + "tip": "Save settings to thermostat, applies on reset" + }, + { + "name": "load", + "title": "Load from flash", + "type": "action", + "tip": "Load settings from flash" + } + ] +} \ No newline at end of file