Skip to content

Commit 75bcb30

Browse files
committed
Updated usage documentation for Spinnaker cameras.
1 parent 5567a9d commit 75bcb30

File tree

1 file changed

+34
-4
lines changed

1 file changed

+34
-4
lines changed

docs/source/devices/spinnaker.rst

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ First ensure that the Spinnaker SDK is installed.
1515

1616
The python wrapper is available via FLIR. It must be installed separately and pointed to the correct conda environment during install.
1717

18-
For GigE cameras, ensure that the network interface card (NIC) on the computer with the BLACS controlling the camera has enabled Jumbo Frames. That maximum allowed value (typically 9000) is preferable to avoid dropped frames.
18+
For GigE cameras, ensure that the network interface card (NIC) on the computer with the BLACS controlling the camera has enabled Jumbo Frames. The maximum allowed value (typically 9000) is preferable to avoid dropped frames.
1919

2020
Usage
2121
~~~~~
@@ -34,15 +34,45 @@ Below is a generic configuration.
3434
3535
from labscript_devices.SpinnakerCamera.labscript_devices import SpinnakerCamera
3636
37+
CCT_global_camera_attributes = {
38+
'AnalogControl::GainAuto': 'Off',
39+
'AnalogControl::Gain': 0.0,
40+
'AnalogControl::BlackLevelEnabled': True,
41+
'AnalogControl::BlackLevel': 0.0,
42+
'AnalogControl::GammaEnabled': False,
43+
'AnalogControl::SharpnessEnabled': False,
44+
'ImageFormatControl::Width': 1008,
45+
'ImageFormatControl::Height': 800,
46+
'ImageFormatControl::OffsetX': 200,
47+
'ImageFormatControl::OffsetY': 224,
48+
'ImageFormatControl::PixelFormat': 'Mono16',
49+
'ImageFormatControl::VideoMode': 'Mode0',
50+
'AcquisitionControl::TriggerMode': 'Off',
51+
'AcquisitionControl::TriggerSource': 'Line0',
52+
'AcquisitionControl::TriggerSelector': 'ExposureActive',
53+
'AcquisitionControl::TriggerActivation': 'FallingEdge',
54+
}
55+
CCT_manual_mode_attributes = {
56+
'AcquisitionControl::TriggerMode': 'Off',
57+
'AcquisitionControl::ExposureMode': 'Timed',
58+
}
59+
CCT_buffered_mode_attributes = {
60+
'AcquisitionControl::TriggerMode': 'On',
61+
'AcquisitionControl::ExposureMode': 'TriggerWidth',
62+
}
63+
3764
SpinnakerCamera('gigeCamera',parent_device=parent,connection=conn,
3865
serial_number=1234567, # set to the camera serial number
3966
minimum_recovery_time=36e-6, # the minimum exposure time depends on the camera model & configuration
40-
camera_attributs={},
41-
manual_camera_attributes={})
67+
trigger_edge_type='falling',
68+
camera_attributs={**CCT_global_camera_attributes,
69+
**CCT_buffered_mode_attributes},
70+
manual_camera_attributes={**CCT_global_camera_attributes,
71+
**CCT_manual_mode_attributes})
4272
4373
start()
4474
45-
gigeCamera.expose(t=0.5,'exposure1')
75+
gigeCamera.expose(t=0.5,'exposure1',trigger_duration=0.25)
4676
4777
4878
stop(1)

0 commit comments

Comments
 (0)