Skip to content

C Examples

Ready-to-run examples shipped with the Spinnaker SDK. Source files are located under src/{ExampleName}/ in the SDK source tree.

Standard Examples

Example Description
Acquisition_C.c Acquisition_C.c shows how to acquire images. It relies on information provided in the Enumeration_C example. Following this, check out the NodeMapInfo_C example if you haven't already. It explores retrieving information from various node types.
AcquisitionMultipleCamera_C.c AcquisitionMultipleCamera_C.c shows how to capture images from multiple cameras simultaneously. It relies on information provided in the Enumeration_C, Acquisition_C, and NodeMapInfo_C examples.
ChunkData_C.c ChunkData_C.c shows how to get chunk data on an image, either from the nodemap or from the image itself. It relies on information provided in the Enumeration_C, Acquisition_C, and NodeMapInfo_C examples.
Enumeration_C.c Enumeration_C.c shows how to enumerate interfaces and cameras. Knowing this is mandatory for doing anything with the Spinnaker SDK, and is therefore the best place to start learning how to use the SDK.
EnumerationEvents_C.c EnumerationEvents_C.c explores arrival and removal events on interfaces and the system. It relies on information provided in the Enumeration_C, Acquisition_C, and NodeMapInfo_C examples.
Exposure_C.c Exposure_C.c shows how to set a custom exposure time on a device. It relies on information provided in the Enumeration_C, Acquisition_C, and NodeMapInfo_C examples.
ImageEvents_C.c ImageEvents_C.c shows how to acquire images using the image event handler. It relies on information provided in the Enumeration_C, Acquisition_C, and NodeMapInfo_C examples.
ImageFormatControl_C.c ImageFormatControl_C.c shows how to apply custom image settings to the camera. It relies on information provided in the Enumeration_C, Acquisition_C, and NodeMapInfo_C examples.
Logging_C.c Logging_C.c shows how create and use logging events. It relies on information provided in the Enumeration_C, Acquisition_C, and NodeMapInfo_C examples.
LookupTable_C.c LookupTable_C.c shows how to configure lookup tables on the camera. It relies on information provided in the Enumeration_C, Acquisition_C, and NodeMapInfo_C examples.
NodeMapCallback_C.c NodeMapCallback_C.c shows how to use nodemap callbacks. It relies on information provided in the Enumeration_C, Acquisition_C, and NodeMapInfo_C examples. As callbacks are very similar to events, it may be a good idea to explore this example prior to tackling the events examples.
NodeMapInfo_C.c NodeMapInfo_C.c shows how to retrieve node map information. It relies on information provided in the Enumeration_C example. Following this, check out the Acquisition_C example if you haven't already. It explores acquiring images.
SaveToVideo_C.c SaveToVideo_C.c shows how to create a video from a vector of images. It relies on information provided in the Enumeration_C , Acquisition_C, and NodeMapInfo_C examples.
Sequencer_C.c Sequencer_C.c shows how to use the sequencer to grab images with various settings. It relies on information provided in the Enumeration_C, Acquisition_C, and NodeMapInfo_C examples.
Trigger_C.c Trigger_C.c shows how to trigger the camera. It relies on information provided in the Enumeration_C, Acquisition_C, and NodeMapInfo_C examples.

QuickSpin Examples

The QuickSpin API provides a simplified, type-safe interface to common camera properties without requiring direct GenICam node access.

Example Description
Enumeration_C_QuickSpin.c Enumeration_C_QuickSpin.c shows how to enumerate interfaces and cameras using the QuickSpin API. QuickSpin is a subset of the Spinnaker library that allows for simpler node access and control. This is a great example to start learning about QuickSpin.
Exposure_C_QuickSpin.c
ImageFormatControl_C_QuickSpin.c
NodeMapInfo_C_QuickSpin.c NodeMapInfo_C_QuickSpin.c shows how to interact with nodes using the QuickSpin API. QuickSpin is a subset of the Spinnaker library that allows for simpler node access and control.
Trigger_C_QuickSpin.c Trigger_C_QuickSpin.c shows how to capture images with the trigger using the QuickSpin API. QuickSpin is a subset of the Spinnaker library that allows for simpler node access and control.