Coverage for backend/flowsheetInternals/unitops/config/objects/pid_config.py: 100%
3 statements
« prev ^ index » next coverage.py v7.10.7, created at 2025-11-06 23:27 +0000
« prev ^ index » next coverage.py v7.10.7, created at 2025-11-06 23:27 +0000
1from common.config_types import *
2from common.config_utils import *
4pid_controller_config: ObjectType = ObjectType.model_validate({
5 "displayType": "PID",
6 "displayName": "PID ",
7 "ports": {},
8 "graphicObject": unitop_graphic(),
9 "properties": {
10 "setpoint": {
11 "displayName": "Setpoint",
12 "type": "numeric",
13 "unitType": "ratio",
14 },
15 "process_var": {
16 "displayName": "Process Variable",
17 "type": "numeric",
18 "unitType": "ratio",
19 },
20 "manipulated_var": {
21 "displayName": "Manipulated Variable",
22 "type": "numeric",
23 "unitType": "ratio",
24 },
25 "mv_ref":{
26 "displayName": "Controller Bias",
27 "type": "numeric",
28 "unitType": "ratio",
29 },
30 "gain_i":{
31 "displayName": "Integral Gain",
32 "type": "numeric",
33 "unitType": "rpm",
34 },
35 "gain_p": {
36 "displayName": "Proportional Gain",
37 "type": "numeric",
38 "unitType": "ratio",
39 },
40 },
41 "propertySetGroups": {
42 "default": {
43 "type": "stateVars",
44 "displayName": "Properties",
45 "stateVars": ("setpoint", "process_var", "mv_ref", "gain_i", "gain_p"),
46 }
47 },
48 "keyProperties": []
49})