Skip to content

Commit 0324995

Browse files
committed
Add docs for the SpinnakerCamera device I somehow overlooked.
1 parent 6ce351c commit 0324995

File tree

3 files changed

+80
-1
lines changed

3 files changed

+80
-1
lines changed

docs/source/devices.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ The camera devices provide interfaces for using various scientific cameras to ac
3939
devices/IMAQdx
4040
devices/pylon
4141
devices/flycapture2
42+
devices/spinnaker
4243
devices/andorsolis
4344

4445

docs/source/devices/flycapture2.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ FlyCapture2 Cameras
33

44
This device allows control of FLIR (formerly Point Grey) scientific cameras via the `FlyCapture2 SDK <https://www.flir.com/products/flycapture-sdk/>`_ with the now deprecated PyCapture2 wrapper. In order to use this device, both the SDK and the python wrapper must be installed. Note that PyCapture2 only supports up to Python 3.6.
55

6+
The new FLIR SDK is supported using the :doc:`SpinnakerCamera labscript device <spinnaker>`.
7+
68
.. autosummary::
79
labscript_devices.FlyCapture2Camera.labscript_devices
810
labscript_devices.FlyCapture2Camera.blacs_tabs
@@ -13,7 +15,7 @@ Installation
1315

1416
First ensure that the FlyCapture2 SDK is installed.
1517

16-
The python wrapper is available via FLIR and is only released for Python up to 3.6. It must be installed separately to pointed to the correct conda environment during install.
18+
The python wrapper is available via FLIR and is only released for Python up to 3.6. It must be installed separately, pointed to the correct conda environment during install.
1719

1820

1921
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.

docs/source/devices/spinnaker.rst

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
Spinnaker Cameras
2+
=================
3+
4+
This device allows control of FLIR scientific cameras via the `Spinnaker SDK <https://www.flir.com/products/spinnaker-sdk/>`_ with the PySpin wrapper. In order to use this device, both the SDK and the python wrapper must be installed.
5+
6+
.. autosummary::
7+
labscript_devices.SpinnakerCamera.labscript_devices
8+
labscript_devices.SpinnakerCamera.blacs_tabs
9+
labscript_devices.SpinnakerCamera.blacs_workers
10+
11+
Installation
12+
~~~~~~~~~~~~
13+
14+
First ensure that the Spinnaker SDK is installed.
15+
16+
The python wrapper is available via FLIR. It must be installed separately and pointed to the correct conda environment during install.
17+
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.
19+
20+
Usage
21+
~~~~~
22+
23+
Like the :doc:`IMAQdxCamera <IMAQdx>` device, the bulk of camera configuration is performed using a dictionary of kwargs, where the key names and values mirror those provided by the Spinnaker SDK interface. Which parameters can/need to be set depend on the communication interface. Discovery of what parameters are available can be done in three ways:
24+
25+
1. Careful reading of the Spinnaker SDK docs.
26+
2. Mirroring the SpinView parameter names and values.
27+
3. Connecting to the camera with a minimal configuration, viewing the current parameters dictionary, and copying the relevant values to the connection table (preferred).
28+
29+
Below is a generic configuration.
30+
31+
.. code-block:: python
32+
33+
from labscript import *
34+
35+
from labscript_devices.SpinnakerCamera.labscript_devices import SpinnakerCamera
36+
37+
SpinnakerCamera('gigeCamera',parent_device=parent,connection=conn,
38+
serial_number=1234567, # set to the camera serial number
39+
minimum_recovery_time=36e-6, # the minimum exposure time depends on the camera model & configuration
40+
camera_attributs={},
41+
manual_camera_attributes={})
42+
43+
start()
44+
45+
gigeCamera.expose(t=0.5,'exposure1')
46+
47+
48+
stop(1)
49+
50+
51+
Detailed Documentation
52+
~~~~~~~~~~~~~~~~~~~~~~
53+
54+
.. automodule:: labscript_devices.SpinnakerCamera
55+
:members:
56+
:undoc-members:
57+
:show-inheritance:
58+
:private-members:
59+
60+
.. automodule:: labscript_devices.SpinnakerCamera.labscript_devices
61+
:members:
62+
:undoc-members:
63+
:show-inheritance:
64+
:private-members:
65+
66+
.. automodule:: labscript_devices.SpinnakerCamera.blacs_tabs
67+
:members:
68+
:undoc-members:
69+
:show-inheritance:
70+
:private-members:
71+
72+
.. automodule:: labscript_devices.SpinnakerCamera.blacs_workers
73+
:members:
74+
:undoc-members:
75+
:show-inheritance:
76+
:private-members:

0 commit comments

Comments
 (0)