eBUS SDK .NET API
  • Getting Started
    • Getting started with the eBUS SDK .NET API
    • Configuring Your IDE
    • Receiving Data from a GigE Vision or USB3 Vision Transmitter
    • Sample Applications
    • GigE Vision Device Communication Parameters
    • USB3 Vision Device Communication Parameters
    • PvStream USB3 Vision Parameters
    • PvStream GigE Vision Parameters
  • eBUS SDK .NET API Reference
    • API Overview
    • eBUSDotNet
    • eBUSDotNetReceive
    • eBUSDotNetEdge
Search Results for

    Show / Hide Table of Contents
      • IPvDeviceAdapter
      • IPvDeviceAdapterSwigInterface
      • IUpdaterObserver
      • OnAcquisitionStateChanged
      • OnBufferCreated
      • OnBufferDeleted
      • OnBufferDisplay
      • OnBufferDone
      • OnBufferLog
      • OnBufferRetrieved
      • OnBufferTextOverlay
      • OnBufferTooSmall
      • OnCmdLinkRead
      • OnCmdLinkReadSafe
      • OnCmdLinkWrite
      • OnCmdLinkWriteSafe
      • OnEvent
      • OnEventGenICam
      • OnEventSafe
      • OnLinkDisconnectedHandler
      • OnLinkReconnectedHandler
      • OnReset
      • OnStart
      • OnStop
      • PvAccessType
      • PvAcquisitionState
      • PvAcquisitionStateEventSink
      • PvAcquisitionStateManager
      • PvActionAckStatusEnum
      • PvBayerFilterType
      • PvBiColorFilterType
      • PvBufferConverter
      • PvBufferConverterRGBFilter
      • PvBufferFormatType
      • PvBufferWriter
      • PvCameraBridge
      • PvCameraBridgeEventSink
      • PvCameraBridgeType
      • PvConfigurationReader
      • PvConfigurationWriter
      • PvDataReceiverType
      • PvDevice
      • PvDeviceAdapter
      • PvDeviceEventSink
      • PvDeviceEventSinkSwigInterface
      • PvDeviceGEV
      • PvDeviceI2CBus
      • PvDevicePleoraProtocol
      • PvDeviceSPIBus
      • PvDeviceSerial
      • PvDeviceSerialPort
      • PvDeviceSerialPortEchoSink
      • PvDeviceU3V
      • PvDisplayThread
      • PvGenFUUpdater
      • PvParity
      • PvPipeline
      • PvPipelineEventSink
      • PvProperty
      • PvPropertyList
      • PvSerialPortConfiguration
      • PvStream
      • PvStreamEventSink
      • PvStreamGEV
      • PvStreamInfo
      • PvStreamRTP
      • PvStreamType
      • PvStreamU3V
      • PvThreadPriority
      • PvTruesenseConverter
      • SWIGTYPE_p_IPvDeviceEventSink
      • SWIGTYPE_p_PvDeinterlacingType
      • SWIGTYPE_p_PvSessionInfoSDP
      • SWIGTYPE_p_PvStringList
      • SWIGTYPE_p_PvTapGeometryEnum
      • SWIGTYPE_p_bool
      • SWIGTYPE_p_double
      • eBUSDotNetReceive

    Class PvAcquisitionStateManager

    Acquisition state manager, advanced TLParamsLocked manager.

    Inheritance
    object
    PvAcquisitionStateManager
    Implements
    IDisposable
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: eBUSDotNetReceive
    Assembly: eBUSDotNetReceive.dll
    Syntax
    public class PvAcquisitionStateManager : IDisposable
    Remarks

    Contains logic to manage the TLParamsLocked GenICam parameter of a PvDevice over various acquisition modes.

    A PvDevice is provided to the constructor of this class. A PvStream is also 
    usually provided. The Start and Stop methods are invoked to start and stop
    the acquisition. If a stream is not provided, the acquisition state has 
    to be reset manually for some acquisition mode as incoming buffers
    cannot be reported/counted.
    
    It takes control of issuing Start/Stop methods to the AcquisitionStart and
    AcquisitionStop GenICam commands of a device. It also counts frames (when applicable)
    to automatically release TLParamsLocked when all the buffers have been accounted
    for. It is possible to cancel the operation preemptively by calling Stop - if the
    user wants to cancel the operation or the user knows some buffers were lost and will
    never come.
    

    Constructors

    View Source

    PvAcquisitionStateManager(PvDevice)

    Constructor.

    Declaration
    public PvAcquisitionStateManager(PvDevice aDevice)
    Parameters
    Type Name Description
    PvDevice aDevice

    Pointer to the PvDevice acquisition controller.

    View Source

    PvAcquisitionStateManager(PvDevice, PvStream)

    Constructor.

    Declaration
    public PvAcquisitionStateManager(PvDevice aDevice, PvStream aStream)
    Parameters
    Type Name Description
    PvDevice aDevice

    Pointer to the PvDevice acquisition controller.

    PvStream aStream

    A pointer to a PvStream receiving buffers. Optional.

    View Source

    PvAcquisitionStateManager(PvDevice, PvStream, uint)

    Constructor.

    Declaration
    public PvAcquisitionStateManager(PvDevice aDevice, PvStream aStream, uint aSource)
    Parameters
    Type Name Description
    PvDevice aDevice

    Pointer to the PvDevice acquisition controller.

    PvStream aStream

    A pointer to a PvStream receiving buffers. Optional.

    uint aSource

    Index of the source in SourceSelector to use. Optional.

    Fields

    View Source

    swigCMemOwn

    Determines who is responsible for deleting the underlying C++ object.

    Declaration
    protected bool swigCMemOwn
    Field Value
    Type Description
    bool

    Properties

    View Source

    Source

    Index of the active source.

    Declaration
    public virtual uint Source { get; }
    Property Value
    Type Description
    uint
    View Source

    State

    Current acquisition state.

    Declaration
    public virtual PvAcquisitionState State { get; }
    Property Value
    Type Description
    PvAcquisitionState
    Remarks

    Returns the state of the acquisition (locked, unlocked, etc.).

    Methods

    View Source

    Dispose()

    Dispose.

    Declaration
    public void Dispose()
    View Source

    Dispose(bool)

    Dispose

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing
    View Source

    ~PvAcquisitionStateManager()

    Destructor.

    Declaration
    protected ~PvAcquisitionStateManager()
    View Source

    RegisterEventSink(PvAcquisitionStateEventSink)

    Register an event sink used for callbacks.

    Declaration
    public PvResult RegisterEventSink(PvAcquisitionStateEventSink aEventSink)
    Parameters
    Type Name Description
    PvAcquisitionStateEventSink aEventSink

    A pointer to the event sink.

    Returns
    Type Description
    PvResult

    Includes:

    • #PvResult::Code::OK
    • #PvResult::Code::INVALID_PARAMETER
    • #PvResult::Code::GENERIC_ERROR
    View Source

    Start()

    Starts the acquisition.

    Declaration
    public PvResult Start()
    Returns
    Type Description
    PvResult

    Includes:

    • #PvResult::Code::INVALID_PARAMETER if the PvDevice is not valid or there are issues with some of the GenICam parameters.
    • #PvResult::Code::STATE_ERROR if TLParamsLocked is already set.
    • #PvResult::Code::NOT_IMPLEMENTED if some critical GenICam parameters not not implemented in the device GenICam interface.
    • #PvResult::Code::GENERIC_ERROR can be propagated up if issues are encountered accessing the parameters of the device GenICam interface.
    View Source

    Stop()

    Stops acquisition.

    Declaration
    public PvResult Stop()
    Returns
    Type Description
    PvResult

    Includes:

    • #PvResult::Code::INVALID_PARAMETER if the PvDevice is not valid or there are issues with some of the GenICam parameters.
    • #PvResult::Code::GENERIC_ERROR can be propagated up if issues are encountered accessing the parameters of the device GenICam interface.
    View Source

    UnregisterEventSink(PvAcquisitionStateEventSink)

    Unregister an event sink

    Declaration
    public PvResult UnregisterEventSink(PvAcquisitionStateEventSink aEventSink)
    Parameters
    Type Name Description
    PvAcquisitionStateEventSink aEventSink

    A pointer to the event sink.

    Returns
    Type Description
    PvResult

    Includes:

    • #PvResult::Code::OK
    • #PvResult::Code::INVALID_PARAMETER
    • #PvResult::Code::NOT_FOUND

    Events

    View Source

    OnAcquisitionStateChanged

    Called whenever the state manager changes the acquisition mode.

    Declaration
    public event OnAcquisitionStateChanged OnAcquisitionStateChanged
    Event Type
    Type Description
    OnAcquisitionStateChanged

    Implements

    IDisposable
    • View Source
    In this article
    Back to top Generated by DocFX