guess pv pid Signed-off-by: Benjamin Hesmans <benjamin.hesmans@uclouvain.be>

This commit is contained in:
Benjamin Hesmans 2015-05-14 13:41:16 -07:00
parent d930a1694c
commit e698e34d45

View File

@ -124,7 +124,10 @@ class MpExperienceNCPV(MpExperience):
self.mpConfig.client.sendCmd(cmd) self.mpConfig.client.sendCmd(cmd)
cmd = self.getPvPidCmd() 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() cmd = self.getPvChangeCmd()
print(cmd) print(cmd)