From a85d81f0cd06efced022f5f4aba7872aaf03511d Mon Sep 17 00:00:00 2001 From: Destination2Unknown <92536730+Destination2Unknown@users.noreply.github.com> Date: Fri, 13 Oct 2023 12:40:29 +0100 Subject: [PATCH] Updated --- PythonCLX_PIDSimulator.pyw | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PythonCLX_PIDSimulator.pyw b/PythonCLX_PIDSimulator.pyw index 9cb705e..fa8334f 100644 --- a/PythonCLX_PIDSimulator.pyw +++ b/PythonCLX_PIDSimulator.pyw @@ -255,8 +255,8 @@ class PIDSimForCLX(object): gui_tags[i].set(round(ret_values[i], 3)) else: self.gui_status.set(ret_states[i]) - if not all(ret_values): - raise Exception(ret_states[0]) + if not all(x == "Success" for x in ret_states): + raise Exception(ret_states[0] + " " + ret_states[1]) # Store Data when it is read self.CV = np.append(self.CV, ret_values[0]) self.SP = np.append(self.SP, ret_values[1])