Get or set strobe delay.
Namespace: Cognex.VisionProAssembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 65.1.0.0
Syntax
Property Value
Type: DoubleEvents
| Event Type | Reason |
|---|---|
| ICogChangedEvent Changed | Fires when the strobe delay changes. The following state flag may be affected: |
Remarks
Sets or gets the strobe delay in milliseconds. The strobe delay is the delay time between the shutter pulse and the strobe firing.
The strobe delay can be a negative value so that the strobe pulse fires before the shutter pulse. Negative values are useful when you are using slower strobes such as LED strobes.
To determine the delay time for Cognex CDC cameras, see How to Choose a CDC Shutter Mode.
Default Value: 0
Examples
using Cognex.VisionPro; private CogFrameGrabbers myFrameGrabbers; private ICogFrameGrabber myFrameGrabber; private ICogAcqFifo myAcqFifo; private void InitializeFifo() { const string VIDEO_FORMAT = "Sony XC75 640x480"; ICogAcqStrobeDelay strobeDelayParams; myFrameGrabbers = new CogFrameGrabbers(); myFrameGrabber = myFrameGrabbers[0]; myAcqFifo = myFrameGrabber.CreateAcqFifo(VIDEO_FORMAT, Cognex.VisionPro.CogAcqFifoPixelFormatConstants.Format8Grey, 0, false); strobeDelayParams = myAcqFifo.OwnedStrobeDelayParams; if (strobeDelayParams != null) strobeDelayParams.StrobeDelay = 12; }
Imports Cognex.VisionPro
Private myFrameGrabbers As CogFrameGrabbers
Private myFrameGrabber As Cognex.VisionPro.ICogFrameGrabber
Private myAcqFifo As Cognex.VisionPro.ICogAcqFifo
Private Sub InitializeFifo()
Const VIDEO_FORMAT = "Sony XC75 640x480"
Dim strobeDelayParams As Cognex.VisionPro.ICogAcqStrobeDelay
myFrameGrabbers = New CogFrameGrabbers
myFrameGrabber = myFrameGrabbers.Item(0)
myAcqFifo = myFrameGrabber.CreateAcqFifo(VIDEO_FORMAT, CogAcqFifoPixelFormatConstants.Format8Grey, 0, False)
strobeDelayParams = myAcqFifo.OwnedStrobeDelayParams
If Not strobeDelayParams Is Nothing Then
strobeDelayParams.StrobeDelay = 12
End If
End SubSee Also