refactor(falcon): update test scripts

This commit is contained in:
2025-06-30 07:02:38 +02:00
parent 377408ee05
commit 93e4ec3056
2 changed files with 15 additions and 4 deletions

View File

@@ -21,6 +21,13 @@ if __name__ == "__main__":
falcon.stop_all.put(1)
status.wait(timeout=5)
# Print PVs
print("PVs:")
print(f"ICR: {falcon.dxp1.input_count_rate.describe()}")
print(f"OCR: {falcon.dxp1.output_count_rate.describe()}")
print(f"ROI: {falcon.mca1.rois.count.describe()}")
print(f"ERT: {falcon.mca1.elapsed_real_time.describe()}")
# Test loop
for i in range(500):
start_time = time.time()
@@ -43,8 +50,5 @@ if __name__ == "__main__":
ocr = falcon.dxp1.output_count_rate.get()
roi = falcon.mca1.rois.count.get()
ert = falcon.mca1.elapsed_real_time.get()
dead_time_corrected_signal = falcon.dead_time_corrected_signal.get()
print(
f"time={time.time() - start_time:.4f}", icr, ocr, roi, ert, dead_time_corrected_signal
)
print(f"time={time.time() - start_time:.4f}", icr, ocr, roi, ert)

View File

@@ -21,6 +21,13 @@ if __name__ == "__main__":
falcon.stop_all.put(1)
status.wait(timeout=5)
# Print PVs
print("PVs:")
print(f"ICR: {falcon.icr.describe()}")
print(f"OCR: {falcon.ocr.describe()}")
print(f"ROI: {falcon.roi.describe()}")
print(f"ERT: {falcon.ert.describe()}")
# Test loop
for i in range(500):
start_time = time.time()