Flash refers to the electrical signal used to trigger an external light source. More...
Topics | |
| Flash configuration options | |
| Functions to set the flash timing parameters. | |
Data Structures | |
| struct | peak_flash_mode |
| peak Flash mode More... | |
Enumerations | |
| enum | peak_flash_reference { PEAK_FLASH_REFERENCE_INVALID , PEAK_FLASH_REFERENCE_LINE_1_SIGNAL , PEAK_FLASH_REFERENCE_EXPOSURE_ACTIVE , PEAK_FLASH_REFERENCE_GLOBAL_START_WINDOW , PEAK_FLASH_REFERENCE_ACQUISITION_ACTIVE } |
| Selects the internal signal that will be the source to start the flash active signal. More... | |
Functions | |
| peak_access_status | peak_Flash_GetAccessStatus (peak_camera_handle hCam) |
| Query the flash feature access status. | |
| peak_status | peak_Flash_Enable (peak_camera_handle hCam, peak_bool enabled) |
| Enable/Disable the flash. | |
| peak_bool | peak_Flash_IsEnabled (peak_camera_handle hCam) |
| Get the enabled status of the flash. | |
| peak_access_status | peak_Flash_Mode_GetAccessStatus (peak_camera_handle hCam, peak_flash_mode flashMode) |
| Query the flash mode access status. | |
| peak_status | peak_Flash_Mode_Set (peak_camera_handle hCam, peak_flash_mode flashMode) |
| Set the flash mode. | |
| peak_status | peak_Flash_Mode_Config_Get (peak_camera_handle hCam, peak_flash_mode *flashMode) |
| Get the flash mode. | |
Flash refers to the electrical signal used to trigger an external light source.
This signal is typically synchronized with the camera's exposure, ensuring the flash fires precisely when the camera captures an image. It is often linked to the ExposureActive signal, ensuring the flash is triggered exactly during the exposure, providing consistent and controlled illumination for the captured frame.
The following example code demonstrates how to configure and activate a flash during active exposure on line 1.
Additional configuration options for the flash include
the flash start delay, ..., the flash end delay ..., the flash duration ...
| enum peak_flash_reference |
Selects the internal signal that will be the source to start the flash active signal.
| Enumerator | |
|---|---|
| PEAK_FLASH_REFERENCE_INVALID | Invalid flash reference. Use this value for the initialization of variables of type peak_flash_reference. |
| PEAK_FLASH_REFERENCE_LINE_1_SIGNAL | Line 1 signal. The flash mirrors the signal of Line 1, e.g. "Flash Active". |
| PEAK_FLASH_REFERENCE_EXPOSURE_ACTIVE | Exposure active. The flash is active while the exposure is active. |
| PEAK_FLASH_REFERENCE_GLOBAL_START_WINDOW | Global start window. The flash is active for the length of the global start window. |
| PEAK_FLASH_REFERENCE_ACQUISITION_ACTIVE | Acquisition active. The flash is active while the acquisition is active. |
| peak_status peak_Flash_Enable | ( | peak_camera_handle | hCam, |
| peak_bool | enabled ) |
Enable/Disable the flash.
Sets the flash to enabled or disabled.
A flash can be enabled or disabled if there is no running acquisition only.
| [in] | hCam | The camera handle. |
| [in] | enabled | The desired enabled status. PEAK_TRUE for enabled, PEAK_FALSE for disabled. |
hCam is an invalid camera handle. | peak_access_status peak_Flash_GetAccessStatus | ( | peak_camera_handle | hCam | ) |
Query the flash feature access status.
Provides the current access status for the flash feature.
This function implements the Access Status Query principle.
| [in] | hCam | The camera handle. |
If the function indicates an error by returning PEAK_ACCESS_INVALID, these are the possible errors:
hCam is an invalid camera handle. | peak_bool peak_Flash_IsEnabled | ( | peak_camera_handle | hCam | ) |
Get the enabled status of the flash.
Queries whether the flash is currently enabled or disabled.
This function implements the Enabled Status Query principle.
| [in] | hCam | The camera handle. |
| peak_status peak_Flash_Mode_Config_Get | ( | peak_camera_handle | hCam, |
| peak_flash_mode * | flashMode ) |
Get the flash mode.
Reads the current flash mode.
| [in] | hCam | The camera handle. |
| [out] | flashMode | The flash mode. |
flashMode is an invalid pointer. hCam is an invalid camera handle. | peak_access_status peak_Flash_Mode_GetAccessStatus | ( | peak_camera_handle | hCam, |
| peak_flash_mode | flashMode ) |
Query the flash mode access status.
Provides the access status for the given flash mode.
This function implements the Access Status Query principle.
| [in] | hCam | The camera handle. |
| [in] | flashMode | The flash mode. |
If the function indicates an error by returning PEAK_ACCESS_INVALID, these are the possible errors:
flashMode is an invalid flash mode. Check peak_flash_reference and peak_io_channel. hCam is an invalid camera handle. | peak_status peak_Flash_Mode_Set | ( | peak_camera_handle | hCam, |
| peak_flash_mode | flashMode ) |
Set the flash mode.
Changes the flash mode.
The properties of the flash will be reset to the following default values:
| [in] | hCam | The camera handle. |
| [in] | flashMode | The flash mode. |
flashMode is an invalid flash mode. Check peak_flash_reference and peak_io_channel. hCam is an invalid camera handle. flashMode contains an invalid parameter, which can never be set.