IDS Peak comfortSDK, genericSDK, IPL, and AFL developer manuals are external documents. Please contact us if you need them.
With the EventSelector you define which event should be sent to the host application.
The supported events depend on the used camera model. |
Name |
EventSelector |
Category |
|
Interface |
Enumeration |
Access |
Read/Write |
Unit |
- |
Visibility |
Expert |
Values |
CriticalError Error EventDropped ExposureStart ExposureEnd ExpsoureTriggerMissed FaceDetect FrameStart FrameDropped Line0FallingEdge Line1FallingEdge Line2FallingEdge Line3FallingEdge Line4FallingEdge Line5FallingEdge Line6FallingEdge Line0RisingEdge Line1RisingEdge Line2RisingEdge Line3RisingEdge Line4RisingEdge Line5RisingEdge Line6RisingEdge LineTriggerMissed PtpMasterSyncLost Temperature TemperatureCriticalRange Test UartRxError UartRxPacket UartRxStatusChanged |
Standard |
SFNC |
Availability uEye+ |
|
Availability uEye |
- |
Values description
Event |
ID |
Description |
---|---|---|
CriticalError |
0x9011 |
The event will be generated when a critical error is detected. |
Error |
0x9010 |
The event will be generated when an error is detected. |
EventDropped |
0x9012 |
The event will be generated when one or more events are lost. |
ExposureStart |
0x9000 |
The camera started the exposure of a frame (or line in SensorOperationMode "Linescan"). |
ExposureEnd |
0x9001 |
The camera completed the exposure of a frame (or line in SensorOperationMode "Linescan"). |
ExposureTriggerMissed |
0x900C |
The camera missed a trigger to start the exposure. |
FaceDetect |
0x9100 |
The event will be generated when a face is detected, when the face position has changed since the last event, or when the face disappears. This event can only be used if the PixelFormat is set to YUV422_8_UYVY. |
FrameDropped |
0x900B |
The event will be generated when one or more frames are lost. |
FrameStart |
0x9002 |
The camera started the capture of a frame. Only available in SensorOperationMode "Linescan". |
FrameTriggerReady |
0x900E |
The event will be generated when the camera is ready to receive the next frame trigger. |
Line0FallingEdge |
0x9007 |
The event will be generated when a falling edge is detected on the Line 0. |
Line1FallingEdge |
0x9008 |
The event will be generated when a falling edge is detected on the Line 1. |
Line2FallingEdge |
0x9009 |
The event will be generated when a falling edge is detected on the Line 2. |
Line3FallingEdge |
0x900A |
The event will be generated when a falling edge is detected on the Line 3. |
Line4FallingEdge |
0x9018 |
The event will be generated when a falling edge is detected on the Line 4. |
Line5FallingEdge |
0x9019 |
The event will be generated when a falling edge is detected on the Line 5. |
Line6FallingEdge |
0x901A |
The event will be generated when a falling edge is detected on the Line 6. |
Line0RisingEdge |
0x9003 |
The event will be generated when a rising edge is detected on the Line 0. |
Line1RisingEdge |
0x9004 |
The event will be generated when a rising edge is detected on the Line 1. |
Line2RisingEdge |
0x9005 |
The event will be generated when a rising edge is detected on the Line 2. |
Line3RisingEdge |
0x9006 |
The event will be generated when a rising edge is detected on the Line 3. |
Line4RisingEdge |
0x9015 |
The event will be generated when a rising edge is detected on the Line 4. |
Line5RisingEdge |
0x9016 |
The event will be generated when a rising edge is detected on the Line 5. |
Line6RisingEdge |
0x9017 |
The event will be generated when a rising edge is detected on the Line 6. |
LineTriggerMissed |
0x900D |
The camera missed a trigger to start the capture of a line. Only available in SensorOperationMode "Linescan". |
PtpMasterSyncLost |
0x9013 |
The event will be generated when PTP master sync is lost. |
Temperature |
0x900E |
The event will be generated when the temperature deviates by more than 0.5 degrees from the previous value. |
TemperatureCriticalRange |
0x900F |
The event will be generated when the temperature rises above the critical value. |
Test |
0x4FFF |
The test event is a packet with a defined structure. It is generated by executing the TestEventGenerate command. The test event is not included in the EventSelector since the notification of this event is always enabled. |
UarRxtError |
0x901C |
The event will be generated when the UART Rx module has detected an error during reception. |
UartRxPacket |
0x901E |
The event is generated when the UART Rx module has received a packet. |
UartRxStatusChanged |
0x901D |
The event will be generated when UartRxStatus has changed. The transmitted data itself is irrelevant and should be ignored. |
Code example
C++
// Determine the current entry of EventSelector
std::string value = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("EventSelector")->CurrentEntry()->SymbolicValue();
// Get a list of all available entries of EventSelector
auto allEntries = nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("EventSelector")->Entries();
std::vector<std::shared_ptr<peak::core::nodes::EnumerationEntryNode>> availableEntries;
for(const auto & entry : allEntries)
{
if ((entry->AccessStatus()!=peak::core::nodes::NodeAccessStatus::NotAvailable)
&& (entry->AccessStatus()!=peak::core::nodes::NodeAccessStatus::NotImplemented))
{
availableEntries.emplace_back(entry);
}
}
// Set EventSelector to "EventDropped"
nodeMapRemoteDevice->FindNode<peak::core::nodes::EnumerationNode>("EventSelector")->SetCurrentEntry("EventDropped");
C#
// Determine the current entry of EventSelector
string value = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("EventSelector").CurrentEntry().SymbolicValue();
// Get a list of all available entries of EventSelector
allEntries = nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("EventSelector").Entries();
List<string> availableEntries = new List<string>();
for(int i = 0; i < allEntries.Count(); ++i)
{
if ((allEntries[i].AccessStatus() != peak.core.nodes.NodeAccessStatus.NotAvailable)
&& (allEntries[i].AccessStatus() != peak.core.nodes.NodeAccessStatus.NotImplemented))
{
availableEntries.Add(allEntries[i].SymbolicValue());
}
}
// Set EventSelector to "EventDropped"
nodeMapRemoteDevice.FindNode<peak.core.nodes.EnumerationNode>("EventSelector").SetCurrentEntry("EventDropped");
Python
# Determine the current entry of EventSelector (str)
value = nodeMapRemoteDevice.FindNode("EventSelector").CurrentEntry().SymbolicValue()
# Get a list of all available entries of EventSelector
allEntries = nodeMapRemoteDevice.FindNode("EventSelector").Entries()
availableEntries = []
for entry in allEntries:
if (entry.AccessStatus() != ids_peak.NodeAccessStatus_NotAvailable
and entry.AccessStatus() != ids_peak.NodeAccessStatus_NotImplemented):
availableEntries.append(entry.SymbolicValue())
# Set EventSelector to "EventDropped" (str)
nodeMapRemoteDevice.FindNode("EventSelector").SetCurrentEntry("EventDropped")