|
ENLIGHTEN
Cross-platform desktop GUI for Wasatch Photonics spectrometers
|
This application demonstrates how to use the device manager to open a camera, how to set parameters for triggering and how to display the first pixel value using the IDS peak IPL. More...
#include <cstdint>#include <iostream>#include <math.h>#include <thread>#include <peak_ipl/peak_ipl.hpp>#include <peak/converters/peak_buffer_converter_ipl.hpp>#include <peak/peak.hpp>#include "softwaretriggerworker.h"Macros | |
| #define | VERSION "1.3.1" |
Functions | |
| bool | access_is_available (peak::core::nodes::NodeAccessStatus access) |
| Access Is Available function. | |
| std::string | find_first_available (std::shared_ptr< peak::core::NodeMap > nodeMapRemoteDevice, std::string enumerationNode, std::vector< std::string > entries) |
| Find First Available function. | |
| std::vector< char > | getAvailableTriggerCases (std::shared_ptr< peak::core::NodeMap > nodeMapRemoteDevice) |
| Get Available Trigger Cases function. | |
| std::vector< char > | getAvailableTriggerSources (std::shared_ptr< peak::core::NodeMap > nodeMapRemoteDevice, std::string triggerSourceNode) |
| Get Available Trigger Sources function. | |
| bool | isFeatureAvailable (std::shared_ptr< peak::core::NodeMap > &nodeMap, const std::string &name) |
| Get feature availability function. | |
| bool | isFeatureEntryAvailable (std::shared_ptr< peak::core::NodeMap > &nodeMap, const std::string &name, const std::string &entry) |
| Get feature entry availability function. | |
| bool | line_is_input (std::shared_ptr< peak::core::NodeMap > nodeMapRemoteDevice, std::string line) |
| Line Is Input function. | |
| void | load_userset_default (std::shared_ptr< peak::core::NodeMap > nodeMapRemoteDevice) |
| Load UserSet Default function. | |
| int | main () |
| void | wait_for_enter () |
| Wait for enter function. | |
This application demonstrates how to use the device manager to open a camera, how to set parameters for triggering and how to display the first pixel value using the IDS peak IPL.
Copyright (C) 2019 - 2025, IDS Imaging Development Systems GmbH.
The information in this document is subject to change without notice and should not be construed as a commitment by IDS Imaging Development Systems GmbH. IDS Imaging Development Systems GmbH does not assume any responsibility for any errors that may appear in this document.
This document, or source code, is provided solely as an example of how to utilize IDS Imaging Development Systems GmbH software libraries in a sample application. IDS Imaging Development Systems GmbH does not assume any responsibility for the use or reliability of any portion of this document.
General permission to copy or modify is hereby granted.
| #define VERSION "1.3.1" |
| bool access_is_available | ( | peak::core::nodes::NodeAccessStatus | access | ) |
Access Is Available function.
The function returns true if the access is available (readable and or writeable). Otherwise returns false.
This function is called from main() whenever the program needs to get the availability of an access status.
| std::string find_first_available | ( | std::shared_ptr< peak::core::NodeMap > | nodeMapRemoteDevice, |
| std::string | enumerationNode, | ||
| std::vector< std::string > | entries ) |
Find First Available function.
The function returns the first available entry (readable and or writeable) of the given node. Otherwise returns an empty string.
This function is called from main() whenever the program needs to find out capabilities of an enumeration node.
| std::vector< char > getAvailableTriggerCases | ( | std::shared_ptr< peak::core::NodeMap > | nodeMapRemoteDevice | ) |
Get Available Trigger Cases function.
The function finds the available trigger cases.
This function is called from main() when the program needs to find available trigger cases.
| std::vector< char > getAvailableTriggerSources | ( | std::shared_ptr< peak::core::NodeMap > | nodeMapRemoteDevice, |
| std::string | triggerSourceNode ) |
Get Available Trigger Sources function.
The function finds the available trigger sources for a given trigger source node.
This function is called from main() when the program needs to find available sources for a given trigger source node.
| bool isFeatureAvailable | ( | std::shared_ptr< peak::core::NodeMap > & | nodeMap, |
| const std::string & | name ) |
Get feature availability function.
Returns if the feature with the given name is available or not.
| bool isFeatureEntryAvailable | ( | std::shared_ptr< peak::core::NodeMap > & | nodeMap, |
| const std::string & | name, | ||
| const std::string & | entry ) |
Get feature entry availability function.
Returns if the enumeration feature with the given name is available and if it has an entry with the given name that is available.
| bool line_is_input | ( | std::shared_ptr< peak::core::NodeMap > | nodeMapRemoteDevice, |
| std::string | line ) |
Line Is Input function.
The function returns true if the given line can be used as input, otherwise returns false.
This function is called from main() whenever the program needs to find out input capabilities of a line.
| void load_userset_default | ( | std::shared_ptr< peak::core::NodeMap > | nodeMapRemoteDevice | ) |
Load UserSet Default function.
The function loads the UserSet Default.
This function is called from main() whenever the program needs to load UserSet Default, either on program start or in consequence of an error or after normal termination.
| int main | ( | ) |
| void wait_for_enter | ( | ) |
Wait for enter function.
The function waits for the user pressing the enter key.
This function is called from main() whenever the program exits, either in consequence of an error or after normal termination.