From e698e34d45a1a4e8d906bbe7020d2f99ad21bdf6 Mon Sep 17 00:00:00 2001 From: Benjamin Hesmans Date: Thu, 14 May 2015 13:41:16 -0700 Subject: [PATCH] guess pv pid Signed-off-by: Benjamin Hesmans --- src/mpExperienceNCPV.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mpExperienceNCPV.py b/src/mpExperienceNCPV.py index 4b984ba..24133ff 100644 --- a/src/mpExperienceNCPV.py +++ b/src/mpExperienceNCPV.py @@ -124,7 +124,10 @@ class MpExperienceNCPV(MpExperience): self.mpConfig.client.sendCmd(cmd) cmd = self.getPvPidCmd() - self.pvPid = self.mpTopo.commandTo(self.mpConfig.server, cmd)[:-1] + self.pvPid = None + while self.pvPid == None or self.pvPid == "": + self.pvPid = self.mpTopo.commandTo(self.mpConfig.server, cmd)[:-1] + print("guessing pv pid ... :" + str(self.pvPid)) cmd = self.getPvChangeCmd() print(cmd)