ICogAcqSync SyncModel Property Cognex VisionPro 9.20
Reads or sets the camera synchronization model.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 80.0.0.0
Syntax

CogAcqSyncModelConstants SyncModel { get; set; }

Property Value

Type: CogAcqSyncModelConstants
Events

Event TypeReason
ICogChangedEvent Changed

Fires when the sync model changes.

The following state flag may be affected:

Exceptions

ExceptionCondition
ArgumentException

val is not in CogAcqSyncModelConstants

Remarks

Sets or gets the camera synchronization model as described by one of the values in CogAcqSyncModelConstants

SyncModel is supported only on the Cognex MVS-8100M.

If you are using a video format that is described by a Camera Configuration File (CCF), SyncModel has no effect. To select a synchronization model for a CCF-based video format, use the CCF that specifies the synchronization your application requires.

Examples

using Cognex.VisionPro;

private CogFrameGrabbers myFrameGrabbers;
private ICogFrameGrabber myFrameGrabber;
private ICogAcqFifo myAcqFifo;

private void InitializeFifo()
{
    const string VIDEO_FORMAT = "Sony XC75 640x480";
    ICogAcqSync syncParams;

    myFrameGrabbers = new CogFrameGrabbers();
    myFrameGrabber = myFrameGrabbers[0];
    myAcqFifo = myFrameGrabber.CreateAcqFifo(VIDEO_FORMAT, 
        Cognex.VisionPro.CogAcqFifoPixelFormatConstants.Format8Grey, 0, false);

    syncParams = myAcqFifo.OwnedSyncParams;
    if (syncParams != null)
        syncParams.SyncModel = CogAcqSyncModelConstants.InternalComposite;
}
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 syncParams As Cognex.VisionPro.ICogAcqSync

    myFrameGrabbers = New CogFrameGrabbers
    myFrameGrabber = myFrameGrabbers.Item(0)
    myAcqFifo = myFrameGrabber.CreateAcqFifo(VIDEO_FORMAT, CogAcqFifoPixelFormatConstants.Format8Grey, 0, False)

    syncParams = myAcqFifo.OwnedSyncParams

    If Not syncParams Is Nothing Then
        syncParams.SyncModel = CogAcqSyncModelConstants.InternalComposite
    End If
End Sub
See Also