IDS Peak comfortSDK, genericSDK, IPL, and AFL developer manuals are external documents. Please contact us if you need them.
The IDS peak library provides all API commands.
Initialization
Before you can use the IDS peak library, the library must be opened.
// initialize library
peak_status status = peak_Library_Init();
if (PEAK_ERROR(status)) { /* Error handling ... */ }
|
// include IDS peak
#include <peak/peak.hpp>
// ...
// initialize library
peak::Library::Initialize();
|
// initialize library
peak.Library.Initialize();
|
# include IDS peak
from ids_peak import ids_peak
# ...
# initialize library
ids_peak.Library.Initialize()
|
Getting the version
It is possible to query the library version.
uint32_t majorVersionNo = 0;
uint32_t minorVersionNo = 0;
uint32_t subMinorVersionNo = 0;
uint32_t patchVersionNo = 0;
// IDS peak version
peak_status status = peak_Library_GetVersion(&majorVersionNo, &minorVersionNo, &subMinorVersionNo, &patchVersionNo);
if (PEAK_ERROR(status)) { /* Error handling ... */ }
printf("IDS peak version No: %i.%i.%i (Patch %i)\n", majorVersionNo, minorVersionNo, subMinorVersionNo, patchVersionNo);
|
// IDS peak version
auto peakVersion = peak::Library::Version();
|
// IDS peak version
auto peakVersion = peak.Library.Version();
|
# IDS peak version
peakVersion = ids_peak.Library.Version()
|
Closing the library
Before closing an application with IDS peak, the library must be closed.
// close library before exiting program
peak_status status = peak_Library_Exit();
if (PEAK_ERROR(status)) { /* Error handling ... */ }
|
// close library before exiting program
peak::Library::Close();
|
// close library before exiting program
peak.Library.Close();
|
# close library before exiting program
ids_peak.Library.Close()
|