Counters
Coaxlink firmware counts each occurrence of each event (except new buffer events)
and makes this counter available in a GenApi feature named EventCount
.
Each event has its own counter, and the value of EventCount
depends on
the selected event:
// select the CameraTriggerRisingEdge event
grabber.setString<DeviceModule>("EventSelector", "CameraTriggerRisingEdge");
// read the value of the counter
int64_t counter = grabber.getInteger<DeviceModule>("EventCount");
or, using the selected feature notation:
// read the value of the CameraTriggerRisingEdge counter
int64_t counter = grabber.getInteger<DeviceModule>("EventCount[CameraTriggerRisingEdge]");