diff options
author | SudhakarKuma | 2021-10-16 02:16:13 +0530 |
---|---|---|
committer | SudhakarKuma | 2021-10-16 02:16:13 +0530 |
commit | e294d8b03fefb042fa80e727dd80780162d08671 (patch) | |
tree | 2e5f63498f5296180ac001c7f4f1757d4a2d46ac | |
parent | f1fa6caabd9f8036c7fa0bb33f2603e9217cd2e6 (diff) | |
download | OM-OPCUA-Control-e294d8b03fefb042fa80e727dd80780162d08671.tar.gz OM-OPCUA-Control-e294d8b03fefb042fa80e727dd80780162d08671.tar.bz2 OM-OPCUA-Control-e294d8b03fefb042fa80e727dd80780162d08671.zip |
Update the variable names
-rw-r--r-- | P-Controller/tankPController.py | 8 | ||||
-rw-r--r-- | P-Controller/tankRPiModel_res.mat | bin | 32491 -> 32491 bytes |
2 files changed, 4 insertions, 4 deletions
diff --git a/P-Controller/tankPController.py b/P-Controller/tankPController.py index 40f2d60..eaa96ae 100644 --- a/P-Controller/tankPController.py +++ b/P-Controller/tankPController.py @@ -25,8 +25,8 @@ if __name__ == "__main__": # print("Objects\' node is : ", objects) # Find the IDs for MV, PV - H_ID = 6 - U_ID = 8 + y_ID = 6 + u_ID = 8 modelicaId = {} modelicaId = objects.get_children() @@ -39,10 +39,10 @@ if __name__ == "__main__": while True: # Evaluate the PV and MV - PV = modelicaId[H_ID].get_value() + PV = modelicaId[y_ID].get_value() MV = Kc * (SP - PV) time.sleep(0.1) - modelicaId[U_ID].set_value(MV) + modelicaId[u_ID].set_value(MV) # print("H value is: ", modelicaId[H_ID].get_value()) # print("Controller effort is: ", modelicaId[U_ID].get_value()) diff --git a/P-Controller/tankRPiModel_res.mat b/P-Controller/tankRPiModel_res.mat Binary files differindex e8e5389..5e9b965 100644 --- a/P-Controller/tankRPiModel_res.mat +++ b/P-Controller/tankRPiModel_res.mat |