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 PvStream

    Receive data from a GigE Vision or USB3 Vision transmitter.

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

    This provides a means of opening a connection to the data receiver and obtaining data from it.

    Fields

    View Source

    swigCMemOwn

    Declaration
    protected bool swigCMemOwn
    Field Value
    Type Description
    bool

    Properties

    View Source

    Channel

    Gets the stream channel property.

    Declaration
    public ushort Channel { get; }
    Property Value
    Type Description
    ushort
    View Source

    IsOpen

    Gets whether the stream is open.

    Declaration
    public bool IsOpen { get; }
    Property Value
    Type Description
    bool
    View Source

    Parameters

    Gets the parameters defining how data is received from a GigE Vision or USB3 Vision transmitter.

    Declaration
    public PvGenParameterArray Parameters { get; }
    Property Value
    Type Description
    PvGenParameterArray
    View Source

    QueuedBufferCount

    Gets the number of buffers waiting to be filled with data.

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

    QueuedBufferMaximum

    Gets the maximum number of buffers that can be queued at a time.

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

    Type

    Type property of PvStream.

    Declaration
    public virtual PvStreamType Type { get; }
    Property Value
    Type Description
    PvStreamType

    Methods

    View Source

    AbortQueuedBuffers()

    Abort all pending block requests

    Declaration
    public PvResult AbortQueuedBuffers()
    Returns
    Type Description
    PvResult

    Includes:

    • #PvResult::Code::OK
    • #PvResult::Code::NOT_CONNECTED
    View Source

    Close()

    Close the stream channel receiver.

    Declaration
    public PvResult Close()
    Returns
    Type Description
    PvResult

    Includes:

    • #PvResult::Code::OK
    • #PvResult::Code::NOT_CONNECTED
    See Also
    Open(PvDeviceInfo)
    View Source

    CreateAndOpen(PvDeviceInfo, ref PvResult)

    Dynamically allocates a PvStream of the right type.

    Declaration
    public static PvStream CreateAndOpen(PvDeviceInfo aDeviceInfo, ref PvResult aResult)
    Parameters
    Type Name Description
    PvDeviceInfo aDeviceInfo

    Pointer to the device information used to open the stream.

    PvResult aResult

    Outcome of the operation. Includes: - #PvResult::Code::OK - #PvResult::Code::INVALID_PARAMETER aInfo is not correct or default buffer configurations are not correct - #PvResult::Code::NOT_ENOUGH_MEMORY could not allocate class - #PvResult::Code::NOT_CONNECTED device not connected - #PvResult::Code::GENERIC_ERROR unexpected drive error - #PvResult::Code::BAD_VERSION bad driver version - #PvResult::Code::NOT_FOUND usb only - #PvResult::Code::CANNOT_OPEN_FILE usb only - #PvResult::Code::NOT_SUPPORTED usb only

    Returns
    Type Description
    PvStream

    A pointer to the new object on success, NULL on failure. See aResult for more information on the failure.

    View Source

    CreateAndOpen(string, ref PvResult)

    Dynamically allocates a PvStream of the right type.

    Declaration
    public static PvStream CreateAndOpen(string aInfo, ref PvResult aResult)
    Parameters
    Type Name Description
    string aInfo

    Information that uniquely identifies the device. You may use one of the following: - GigE Vision device's IP Address. Use the form 192.168.1.114. - USB3 Vision GUID.

    PvResult aResult

    Outcome of the operation. Includes: - #PvResult::Code::OK - #PvResult::Code::INVALID_PARAMETER aInfo is not correct or default buffer configurations are not correct - #PvResult::Code::NOT_ENOUGH_MEMORY could not allocate class - #PvResult::Code::NOT_CONNECTED device not connected - #PvResult::Code::GENERIC_ERROR unexpected drive error - #PvResult::Code::BAD_VERSION bad driver version - #PvResult::Code::NOT_FOUND usb only - #PvResult::Code::CANNOT_OPEN_FILE usb only - #PvResult::Code::NOT_SUPPORTED usb only

    Returns
    Type Description
    PvStream

    A pointer to the new object on success, NULL on failure. See aResult for more information on the failure (unless failure was aResult being NULL)

    View Source

    Dispose()

    Dispose.

    Declaration
    public void Dispose()
    View Source

    Dispose(bool)

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

    ~PvStream()

    Destructor.

    Declaration
    protected ~PvStream()
    View Source

    Free(PvStream)

    Frees an object allocated with CreateAndOpen.

    Declaration
    public static void Free(PvStream aStream)
    Parameters
    Type Name Description
    PvStream aStream

    Pointer to the device object to delete.

    View Source

    GetType()

    Returns whether the object is a GigE Vision or USB3 Vision stream receiver.

    Declaration
    public PvStreamType GetType()
    Returns
    Type Description
    PvStreamType

    Specific object type.

    View Source

    Open(PvDeviceInfo)

    Opens the stream using device connection information.

    Declaration
    public virtual PvResult Open(PvDeviceInfo aDeviceInfo)
    Parameters
    Type Name Description
    PvDeviceInfo aDeviceInfo

    Device information used to connect the stream.

    Returns
    Type Description
    PvResult

    PV_OK on success, or an error code on failure.

    Remarks

    See specific implementations in PvStreamGEV, PvStreamU3V, and PvStreamRTP for Open method overloads.

    View Source

    Open(string)

    Opens the stream using a connection string.

    Declaration
    public virtual PvResult Open(string aInfo)
    Parameters
    Type Name Description
    string aInfo

    Transport-specific connection information (IP address, GUID, etc.).

    Returns
    Type Description
    PvResult

    PV_OK on success, or an error code on failure.

    Remarks

    See specific implementations in PvStreamGEV, PvStreamU3V, and PvStreamRTP for Open method overloads.

    View Source

    QueueBuffer(PvBuffer)

    Queue a buffer to receive a block.

    Declaration
    public PvResult QueueBuffer(PvBuffer aBuffer)
    Parameters
    Type Name Description
    PvBuffer aBuffer

    A pointer to the buffer to be filled.

    Returns
    Type Description
    PvResult

    Includes:

    • #PvResult::Code::INVALID_PARAMETER
    • #PvResult::Code::NOT_CONNECTED
    • #PvResult::Code::NO_MORE_ENTRY
    • #PvResult::Code::NOT_ENOUGH_MEMORY
    • #PvResult::Code::PENDING if the buffer has been properly queued
    • #PvResult::Code::GENERIC_ERROR if the buffer could not be queued. See #PvResult::GetDescription for more information
    View Source

    RegisterEventSink(PvStreamEventSink)

    Register an event sink used for callbacks.

    Declaration
    public PvResult RegisterEventSink(PvStreamEventSink aEventSink)
    Parameters
    Type Name Description
    PvStreamEventSink 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

    RetrieveBuffer(out PvBuffer, ref PvResult)

    Attempt to retrieve a queued buffer.

    Declaration
    public PvResult RetrieveBuffer(out PvBuffer aBuffer, ref PvResult aOperationResult)
    Parameters
    Type Name Description
    PvBuffer aBuffer

    The buffer that holds the image.

    PvResult aOperationResult

    A pointer to the result of the acquisition operation on aBuffer, see #PvBuffer::GetOperationResult.

    Returns
    Type Description
    PvResult

    Includes:

    • #PvResult::Code::OK
    • #PvResult::Code::INVALID_PARAMETER
    • #PvResult::Code::TIMEOUT
    • #PvResult::Code::NOT_CONNECTED (not connected.)
    • #PvResult::Code::NO_MORE_ENTRY
    • #PvResult::Code::NO_MORE_ITEM (no PvBuffer queued.)
    • #PvResult::Code::BUSY
    View Source

    RetrieveBuffer(out PvBuffer, ref PvResult, uint)

    Attempt to retrieve a queued buffer.

    Declaration
    public PvResult RetrieveBuffer(out PvBuffer aBuffer, ref PvResult aOperationResult, uint aTimeout)
    Parameters
    Type Name Description
    PvBuffer aBuffer

    The buffer that holds the image.

    PvResult aOperationResult

    A pointer to the result of the acquisition operation on aBuffer, see #PvBuffer::GetOperationResult.

    uint aTimeout

    The maximum time, in ms, to wait for a buffer to be returned by the data receiver.

    Returns
    Type Description
    PvResult

    Includes:

    • #PvResult::Code::OK
    • #PvResult::Code::INVALID_PARAMETER
    • #PvResult::Code::TIMEOUT
    • #PvResult::Code::NOT_CONNECTED (not connected.)
    • #PvResult::Code::NO_MORE_ENTRY
    • #PvResult::Code::NO_MORE_ITEM (no PvBuffer queued.)
    • #PvResult::Code::BUSY
    View Source

    UnregisterEventSink(PvStreamEventSink)

    Unregister an event sink

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

    A pointer to the event sink.

    Returns
    Type Description
    PvResult

    Includes:

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

    Implements

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