pre uc480 integration
This commit is contained in:
@@ -1411,10 +1411,13 @@ class TektronixOscilloscopeBase:
|
||||
if not self.get_fastframe_state():
|
||||
raise RuntimeError("FastFrame is not enabled. Enable it with set_fastframe_state(True)")
|
||||
|
||||
# Get the frame count
|
||||
frame_count = self.get_fastframe_count()
|
||||
if frame_count <= 0:
|
||||
raise RuntimeError(f"Invalid FastFrame count: {frame_count}")
|
||||
# Use the number of frames actually acquired, not the configured maximum.
|
||||
# If the stage stops early, fewer triggers arrive and the scope captures
|
||||
# fewer frames than configured — reading the configured count would block.
|
||||
acquired = int(self.query("ACQuire:NUMFRAMESACQuired?"))
|
||||
if acquired <= 0:
|
||||
raise RuntimeError(f"Scope acquired 0 FastFrame frames — no data to read")
|
||||
frame_count = acquired
|
||||
|
||||
# Send a single CURVe? query - scope will return all frames
|
||||
self.write("CURVe?")
|
||||
|
||||
Reference in New Issue
Block a user