Skip to content

Commit

Permalink
Updating buffer information
Browse files Browse the repository at this point in the history
Changed the StreamBufferHandling mode to OldestFirst, and the manual buffer count to 1 when taking a single snap.
  • Loading branch information
jacksulli committed Jul 7, 2024
1 parent 1774866 commit 9a358ec
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions labscript_devices/SpinnakerCamera/blacs_workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,15 @@ def configure_acquisition(self, continuous=True, bufferCount=10):
self.set_stream_attribute('StreamBufferHandlingMode', 'NewestFirst')
self.set_attribute('AcquisitionMode', 'Continuous')
elif bufferCount == 1:
# The StreamBufferCountMode originally was set to 'Auto', but this feature was depreciated by Spinnaker version 3.0.0.118
self.set_stream_attribute('StreamBufferCountMode', 'Manual')
self.set_stream_attribute('StreamBufferCountManual', 3)
self.set_stream_attribute('StreamBufferHandlingMode', 'NewestFirst')
self.set_stream_attribute('StreamBufferCountManual', 1)
self.set_stream_attribute('StreamBufferHandlingMode', 'OldestFirst')
self.set_attribute('AcquisitionMode', 'SingleFrame')
else:
self.set_stream_attribute('StreamBufferCountMode', 'Manual')
self.set_stream_attribute('StreamBufferCountManual', bufferCount)
self.set_stream_attribute('StreamBufferHandlingMode', 'NewestFirst')
self.set_stream_attribute('StreamBufferHandlingMode', 'OldestFirst')
self.set_attribute('AcquisitionMode', 'MultiFrame')
self.set_attribute('AcquisitionFrameCount', bufferCount)

Expand Down

0 comments on commit 9a358ec

Please sign in to comment.