From e294d8b03fefb042fa80e727dd80780162d08671 Mon Sep 17 00:00:00 2001 From: SudhakarKuma Date: Sat, 16 Oct 2021 02:16:13 +0530 Subject: Update the variable names --- P-Controller/tankPController.py | 8 ++++---- 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 index e8e5389..5e9b965 100644 Binary files a/P-Controller/tankRPiModel_res.mat and b/P-Controller/tankRPiModel_res.mat differ -- cgit