Class PvVirtualDeviceGEV
Virtual GigE Vision device.
Implements
Inherited Members
Namespace: eBUSDotNetEdge
Assembly: eBUSDotNetEdge.dll
Syntax
public class PvVirtualDeviceGEV : IDisposable
Remarks
Proper use of the PvVirtualDeviceGEV class is demonstrated in all transmitter samples.
Constructors
View SourcePvVirtualDeviceGEV()
Constructor.
Declaration
public PvVirtualDeviceGEV()
Fields
View SourceswigCMemOwn
Determines who is responsible for deleting the underlying C++ object.
Declaration
protected bool swigCMemOwn
Field Value
| Type | Description |
|---|---|
| bool |
Properties
View SourceDevicePortThreadPriority
Gets or sets the device port thread priority.
Declaration
public uint DevicePortThreadPriority { get; set; }
Property Value
| Type | Description |
|---|---|
| uint |
DeviceVersion
Gets or sets the device version string.
Declaration
public string DeviceVersion { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
GVCPCapabilityPacketResendCommandSupported
Gets whether the device supports the GVCP packet resend command capability.
Declaration
public bool GVCPCapabilityPacketResendCommandSupported { get; }
Property Value
| Type | Description |
|---|---|
| bool |
ManufacturerName
Gets or sets the device manufacturer name.
Declaration
public string ManufacturerName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ModelName
Gets or sets the device model name.
Declaration
public string ModelName { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
SerialNumber
Gets or sets the device serial number string.
Declaration
public string SerialNumber { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
View SourceAddTransmitterGEV(IPvTransmitterGEV)
Add the GVSP transmitter that will issue resend requests.
Declaration
public PvResult AddTransmitterGEV(IPvTransmitterGEV aTransmitterGEV)
Parameters
| Type | Name | Description |
|---|---|---|
| IPvTransmitterGEV | aTransmitterGEV | Instance of PvTransmitterGEV. |
Returns
| Type | Description |
|---|---|
| PvResult | Includes: PvResult::Code::OK, PvResult::Code::INVALID_PARAMETER if the argument is null, already transmitting, or the maximum count is exceeded, PvResult::Code::BUSY if the device is already listening. |
Remarks
Must be set before calling StartListening.
Dispose()
Dispose.
Declaration
public void Dispose()
Dispose(bool)
Dispose
Declaration
protected virtual void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
~PvVirtualDeviceGEV()
Destructor.
Declaration
protected ~PvVirtualDeviceGEV()
GetGEVSpecificationVersion(SWIGTYPE_p_unsigned_short, SWIGTYPE_p_unsigned_short)
Get the current GigE Vision standard version used by the virtual device.
Declaration
public PvResult GetGEVSpecificationVersion(SWIGTYPE_p_unsigned_short aMajor, SWIGTYPE_p_unsigned_short aMinor)
Parameters
| Type | Name | Description |
|---|---|---|
| SWIGTYPE_p_unsigned_short | aMajor | Major version. |
| SWIGTYPE_p_unsigned_short | aMinor | Minor version. |
Returns
| Type | Description |
|---|---|
| PvResult | Includes: PvResult::Code::OK. |
SetGEVSpecificationVersion(ushort, ushort)
Set the version of the GigE Vision standard for the virtual device.
Declaration
public PvResult SetGEVSpecificationVersion(ushort aMajor, ushort aMinor)
Parameters
| Type | Name | Description |
|---|---|---|
| ushort | aMajor | Major version number of the GigE Vision standard. |
| ushort | aMinor | Minor version number of the GigE Vision standard. |
Returns
| Type | Description |
|---|---|
| PvResult | Includes: PvResult::Code::OK, PvResult::Code::INVALID_PARAMETER if the major/minor is out of range, PvResult::Code::BUSY if the device is already listening. |
Remarks
Must be set before calling StartListening.
SetGVCPCapabilityPacketResendCommandSupported(bool)
Configure support for the packet resend command (GigE Vision 2.0+).
Declaration
public PvResult SetGVCPCapabilityPacketResendCommandSupported(bool aValue)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | aValue | True to support packet resend commands. |
Returns
| Type | Description |
|---|---|
| PvResult | Includes: PvResult::Code::OK, PvResult::Code::BUSY if the device is already listening. |
Remarks
Must be set before calling StartListening.
StartListening(string)
Begin responding to GVCP traffic on the specified network interface.
Declaration
public PvResult StartListening(string aIPAddress)
Parameters
| Type | Name | Description |
|---|---|---|
| string | aIPAddress | IP address the virtual device listens on (e.g. 192.168.1.114). |
Returns
| Type | Description |
|---|---|
| PvResult | Includes: PvResult::Code::OK on success. |
See Also
View SourceStopListening()
Stop responding to GVCP traffic and close the connection.
Declaration
public void StopListening()