Skip to content

Commit

Permalink
Merge pull request #116 from jacksulli/spinnaker_camera_changes
Browse files Browse the repository at this point in the history
Changed SpinnakerCamera StreamBufferCountMode
  • Loading branch information
dihm authored Jul 14, 2024
2 parents 8c360af + 9a358ec commit dffa132
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions labscript_devices/SpinnakerCamera/blacs_workers.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,14 @@ def configure_acquisition(self, continuous=True, bufferCount=10):
self.set_stream_attribute('StreamBufferHandlingMode', 'NewestFirst')
self.set_attribute('AcquisitionMode', 'Continuous')
elif bufferCount == 1:
self.set_stream_attribute('StreamBufferCountMode', 'Auto')
# 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', 1)
self.set_stream_attribute('StreamBufferHandlingMode', 'OldestFirst')
self.set_attribute('AcquisitionMode', 'SingleFrame')
else:
self.set_stream_attribute('StreamBufferCountMode', 'Auto')
self.set_stream_attribute('StreamBufferCountMode', 'Manual')
self.set_stream_attribute('StreamBufferCountManual', bufferCount)
self.set_stream_attribute('StreamBufferHandlingMode', 'OldestFirst')
self.set_attribute('AcquisitionMode', 'MultiFrame')
self.set_attribute('AcquisitionFrameCount', bufferCount)
Expand Down

0 comments on commit dffa132

Please sign in to comment.