This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <dlapi.h> | |
#include "DLAPIHelper.h" | |
using namespace dl; | |
int main() | |
{ | |
// Instantiate the DLAPIHelper interface | |
DLAPI api; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <dlapi.h> | |
// For more details on using the dl::ISensor::Settings enum, see: | |
// https://cdn.diffractionlimited.com/dlapi/classdl_1_1_i_sensor.html#a1e12786d604def625b4ecffdbbdf8498 | |
/*! | |
* \brief toggleStatusLED() | |
* \param pSensor pointer to your main camera sensor instance | |
* \param enable true to enable the status LED, false to disable it | |
* \returns true on success, false otherwise |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <dlapi.h> | |
#include <chrono> | |
#include <thread> | |
#include <exception> | |
#include <iostream> | |
#include <memory> | |
#include <string> | |
#include <valarray> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <dlapi.h> | |
#include <stdexcept> | |
using namespace dl; | |
void handlePromise(IPromisePtr pPromise) | |
{ | |
if (!pPromise) return; | |
auto result = pPromise->wait(); | |
if (result != IPromise::Complete) |