From 8b1e62962f8c9fe722a37aeac494a3e91d4fef13 Mon Sep 17 00:00:00 2001 From: atse Date: Wed, 3 Jul 2024 13:40:50 +0800 Subject: [PATCH] Format JSON --- pytec/pytec/gui/view/param_tree.json | 804 +++++++++++++-------------- 1 file changed, 402 insertions(+), 402 deletions(-) diff --git a/pytec/pytec/gui/view/param_tree.json b/pytec/pytec/gui/view/param_tree.json index 3a9dc89..73665ba 100644 --- a/pytec/pytec/gui/view/param_tree.json +++ b/pytec/pytec/gui/view/param_tree.json @@ -1,407 +1,407 @@ { - "ctrl_panel":[ - { - "name":"temperature", - "title": "Temperature", - "type":"float", - "format":"{value:.4f} °C", - "readonly":true - }, - { - "name":"current", - "title":"Current through TEC", - "type":"float", - "siPrefix":true, - "suffix":"A", - "decimals":6, - "readonly":true - }, - { - "name":"output", - "title":"Output Settings", - "expanded":true, - "type":"group", - "children":[ - { - "name":"control_method", - "title":"Control Method", - "type":"mutex", - "limits":{ - "Constant Current": "constant_current", - "Temperature PID": "temperature_pid" - }, - "activaters":[ - null, - [ - "pwm", - "ch", - "pid" - ] - ], - "children":[ - { - "name":"set_current", - "title":"Set Current (mA)", - "type":"float", - "value":0, - "step":100, - "limits":[ - -2000, - 2000 - ], - "triggerOnShow":true, - "decimals":6, - "compactHeight":false, - "param":[ - "pwm", - "ch", - "i_set" - ], - "lock":false - }, - { - "name": "set_temperature", - "title":"Set Temperature (°C)", - "type":"float", - "value":25, - "step":0.1, - "limits":[ - -273, - 300 - ], - "format":"{value:.4f}", - "compactHeight":false, - "param":[ - "pid", - "ch", - "target" - ], - "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" - ], - "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" - ], - "lock":false - }, - { - "name":"max_v", - "title":"Max Voltage Difference (V)", - "type":"float", - "value":0, - "step":0.1, - "limits":[ - 0, - 5 - ], - "siPrefix":true, - "compactHeight":false, - "param":[ - "pwm", - "ch", - "max_v" - ], - "lock":false - } - ] - } - ] - }, - { - "name":"thermistor", - "title":"Thermistor Settings", - "expanded":true, - "type":"group", - "tip": "Settings of the connected Thermistor", - "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 Formula", - "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 Formula", - "lock":false - }, - { - "name":"b", - "title":"B (K)", - "type":"float", - "value":3950, - "step":1, - "decimals":4, - "compactHeight":false, - "param":[ - "s-h", - "ch", - "b" - ], - "lock":false - }, - { - "name":"postfilter_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 - }, - "lock":false - } - ] - }, - { - "name":"pid", - "title":"PID Settings", - "expanded":true, - "type":"group", - "children":[ - { - "name":"kp", - "title":"Kp", - "type":"float", - "step":0.1, - "suffix":"", - "compactHeight":false, - "param":[ - "pid", - "ch", - "kp" - ], - "lock":false - }, - { - "name":"ki", - "title":"Ki", - "type":"float", - "step":0.1, - "suffix":"Hz", - "compactHeight":false, - "param":[ - "pid", - "ch", - "ki" - ], - "lock":false - }, - { - "name":"kd", - "title":"Kd", - "type":"float", - "step":0.1, - "suffix":"s", - "compactHeight":false, - "param":[ - "pid", - "ch", - "kd" - ], - "lock":false - }, - { - "name":"pid_output_clamping", - "title":"PID Output Clamping", - "expanded":true, - "type":"group", - "children":[ - { - "name":"output_min", - "title":"Minimum (mA)", - "type":"float", - "step":100, - "limits":[ - -2000, - 2000 - ], - "decimals":6, - "compactHeight":false, - "param":[ - "pid", - "ch", - "output_min" - ], - "lock":false - }, - { - "name":"output_max", - "title":"Maximum (mA)", - "type":"float", - "step":100, - "limits":[ - -2000, - 2000 - ], - "decimals":6, - "compactHeight":false, - "param":[ - "pid", - "ch", - "output_max" - ], - "lock":false - } - ] - }, - { - "name":"pid_autotune", - "title":"PID Autotune", - "expanded":false, - "type":"group", - "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" - ] - }, - { - "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" - ] - }, - { - "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" - ] - }, - { - "name":"lookback", - "title":"Lookback (s)", - "type":"float", - "value":3.0, - "step":0.1, - "format":"{value:.4f}", - "compactHeight":false, - "pid_autotune":[ + "ctrl_panel": [ + { + "name": "temperature", + "title": "Temperature", + "type": "float", + "format": "{value:.4f} °C", + "readonly": true + }, + { + "name": "current", + "title": "Current through TEC", + "type": "float", + "siPrefix": true, + "suffix": "A", + "decimals": 6, + "readonly": true + }, + { + "name": "output", + "title": "Output Settings", + "expanded": true, + "type": "group", + "children": [ + { + "name": "control_method", + "title": "Control Method", + "type": "mutex", + "limits": { + "Constant Current": "constant_current", + "Temperature PID": "temperature_pid" + }, + "activaters": [ + null, + [ + "pwm", + "ch", + "pid" + ] + ], + "children": [ + { + "name": "set_current", + "title": "Set Current (mA)", + "type": "float", + "value": 0, + "step": 100, + "limits": [ + -2000, + 2000 + ], + "triggerOnShow": true, + "decimals": 6, + "compactHeight": false, + "param": [ + "pwm", + "ch", + "i_set" + ], + "lock": false + }, + { + "name": "set_temperature", + "title": "Set Temperature (°C)", + "type": "float", + "value": 25, + "step": 0.1, + "limits": [ + -273, + 300 + ], + "format": "{value:.4f}", + "compactHeight": false, + "param": [ + "pid", + "ch", + "target" + ], + "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" + ], + "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" + ], + "lock": false + }, + { + "name": "max_v", + "title": "Max Voltage Difference (V)", + "type": "float", + "value": 0, + "step": 0.1, + "limits": [ + 0, + 5 + ], + "siPrefix": true, + "compactHeight": false, + "param": [ + "pwm", + "ch", + "max_v" + ], + "lock": false + } + ] + } + ] + }, + { + "name": "thermistor", + "title": "Thermistor Settings", + "expanded": true, + "type": "group", + "tip": "Settings of the connected Thermistor", + "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 Formula", + "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 Formula", + "lock": false + }, + { + "name": "b", + "title": "B (K)", + "type": "float", + "value": 3950, + "step": 1, + "decimals": 4, + "compactHeight": false, + "param": [ + "s-h", + "ch", + "b" + ], + "lock": false + }, + { + "name": "postfilter_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 + }, + "lock": false + } + ] + }, + { + "name": "pid", + "title": "PID Settings", + "expanded": true, + "type": "group", + "children": [ + { + "name": "kp", + "title": "Kp", + "type": "float", + "step": 0.1, + "suffix": "", + "compactHeight": false, + "param": [ + "pid", + "ch", + "kp" + ], + "lock": false + }, + { + "name": "ki", + "title": "Ki", + "type": "float", + "step": 0.1, + "suffix": "Hz", + "compactHeight": false, + "param": [ + "pid", + "ch", + "ki" + ], + "lock": false + }, + { + "name": "kd", + "title": "Kd", + "type": "float", + "step": 0.1, + "suffix": "s", + "compactHeight": false, + "param": [ + "pid", + "ch", + "kd" + ], + "lock": false + }, + { + "name": "pid_output_clamping", + "title": "PID Output Clamping", + "expanded": true, + "type": "group", + "children": [ + { + "name": "output_min", + "title": "Minimum (mA)", + "type": "float", + "step": 100, + "limits": [ + -2000, + 2000 + ], + "decimals": 6, + "compactHeight": false, + "param": [ + "pid", + "ch", + "output_min" + ], + "lock": false + }, + { + "name": "output_max", + "title": "Maximum (mA)", + "type": "float", + "step": 100, + "limits": [ + -2000, + 2000 + ], + "decimals": 6, + "compactHeight": false, + "param": [ + "pid", + "ch", + "output_max" + ], + "lock": false + } + ] + }, + { + "name": "pid_autotune", + "title": "PID Autotune", + "expanded": false, + "type": "group", + "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" + ] + }, + { + "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" + ] + }, + { + "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" + ] + }, + { + "name": "lookback", + "title": "Lookback (s)", + "type": "float", + "value": 3.0, + "step": 0.1, + "format": "{value:.4f}", + "compactHeight": false, + "pid_autotune": [ "lookback", "ch" ] }, - { - "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