Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.

Commit a85d81f

Browse files
Updated
1 parent 632949e commit a85d81f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

PythonCLX_PIDSimulator.pyw

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,8 @@ class PIDSimForCLX(object):
255255
gui_tags[i].set(round(ret_values[i], 3))
256256
else:
257257
self.gui_status.set(ret_states[i])
258-
if not all(ret_values):
259-
raise Exception(ret_states[0])
258+
if not all(x == "Success" for x in ret_states):
259+
raise Exception(ret_states[0] + " " + ret_states[1])
260260
# Store Data when it is read
261261
self.CV = np.append(self.CV, ret_values[0])
262262
self.SP = np.append(self.SP, ret_values[1])

0 commit comments

Comments
 (0)