def recordContinuously(self):
'''@brief Continuously records the requested parameters while self.recording is set to true.'''
count = 0
while self.recording:
if self.fnTest is not None:
prog = self.fnTest.progress
if prog >= 100:
self.stopTest()
self.status = -prog if prog > 0 else "Working..."
else:
self.status = "Working..."
count += 1
for (subsystem, value), name in zip(self.valuesToRead, self.names):
command = '{}.synchCommandLine(1000,"readChannelValue {}").getResult()'.format(subsystem, value)
result = jy2.get(command)
self.data[name].append(result)
if count == self.backup > 0:
count = 0
pickle.dump(self.data, open("ParameterLogging.dat", "wb"))
time.sleep(self.delay)
评论列表
文章目录