Class GenICamFrameErrorEventArgs
- Namespace
- VisioForge.Core.GenICam
- Assembly
- VisioForge.Core.dll
Event arguments for GenICam frame error events. This class provides information about errors that occur during frame processing in GenICam-compatible camera devices.
public class GenICamFrameErrorEventArgs : EventArgsInheritance
Inherited Members
Examples
// Subscribe to frame error events
camera.FrameError += (sender, e) =>
{
Console.WriteLine($"Frame error occurred: {e.ErrorMessage}");
// Handle the error appropriately
};
Remarks
GenICam (Generic Interface for Cameras) is a standard interface for machine vision cameras. Frame errors can occur due to various reasons such as transmission issues, buffer overflows, or camera hardware problems.
Constructors
GenICamFrameErrorEventArgs(string)
Initializes a new instance of the VisioForge.Core.GenICam.GenICamFrameErrorEventArgs class.
public GenICamFrameErrorEventArgs(string errorMessage)Parameters
errorMessagestring-
The error message describing the frame error that occurred.
Examples
var errorArgs = new GenICamFrameErrorEventArgs("Frame transmission failed: timeout occurred");
Exceptions
- ArgumentNullException
-
Thrown when
errorMessageis null.
Properties
ErrorMessage
Gets the error message describing the frame error that occurred.
public string ErrorMessage { get; }