Factory object for creating Device objects. More...
Static Public Member Functions | |
static DiscoveryInformationList | Discover () |
Discovers available devices (not vins) with a default time span of 300ms. More... | |
static DiscoveryInformationList | Discover (DiscoverFlags flags) |
Discovers available devices/nodes depending on the given flags with a default time span of 300ms. More... | |
static DiscoveryInformationList | Discover (DiscoverFlags flags, TimeSpan waitTime) |
Discovers available devices/nodes depending on the given flags . More... | |
static DiscoveryInformationList | Discover (DiscoveryInformation info) |
Discovers available nodes starting on the level of the given discover info with a default time span of 300ms. More... | |
static DiscoveryInformationList | Discover (string accessToken) |
Discovers available nodes starting on level of the given accessToken with a default time span of 300ms. More... | |
static DiscoveryInformationList | Discover (DiscoveryInformation info, DiscoverFlags flags) |
Discovers available nodes starting on level of the given discover info with a default time span of 300ms. More... | |
static DiscoveryInformationList | Discover (string accessToken, DiscoverFlags flags) |
Discovers available nodes starting on level of the given accessToken with a default time span of 300ms. More... | |
static DiscoveryInformationList | Discover (DiscoveryInformation info, DiscoverFlags flags, TimeSpan waitTime) |
Discovers available nodes starting on level of the given discover info . More... | |
static DiscoveryInformationList | Discover (string accessToken, DiscoverFlags flags, TimeSpan waitTime) |
Discovers available nodes starting on level of the given accessToken . More... | |
static IEnumerable< Device > | GetOpenDeviceSnapshot () |
Gets all currently opened devices. More... | |
static bool | TryOpen (DiscoveryInformation info, out Device device, AcquisitionStack acquisitionStack=AcquisitionStack.PreferVin) |
Tries to open a device with the given discovery info . More... | |
static bool | TryOpen (string provider, out Device device, AcquisitionStack acquisitionStack=AcquisitionStack.PreferVin) |
Tries to open a device with the given provider with its default board and port (if applicable). More... | |
static bool | TryOpen (string provider, int board, int port, out Device device) |
Tries to open a device with the given provider . More... | |
static bool | TryOpenBoard (string provider, int board, out Device device) |
Tries to open a device with the given provider and board . More... | |
static bool | TryOpenPort (string provider, int port, out Device device) |
Tries to open a device with the given provider and port . More... | |
static Device | Open (DiscoveryInformation info, AcquisitionStack acquisitionStack=AcquisitionStack.PreferVin) |
Opens a device based on the given discovery info . More... | |
static T | Open< T > (DiscoveryInformation info) |
Opens a device of type T based on the given discovery info . More... | |
static Device | Open (string provider, AcquisitionStack acquisitionStack=AcquisitionStack.PreferVin) |
Tries to open a device with the given provider with its default board and port (if applicable). More... | |
static T | Open< T > (string provider) |
Tries to open a device of type T with the given provider with its default board and port (if applicable). More... | |
static Device | Open (string provider, int board, int port) |
Open a device with the given provider . More... | |
static T | Open< T > (string provider, int board, int port) |
Open a device of type T with the given provider . More... | |
static Device | OpenBoard (string provider, int board) |
Open a device with the given provider and board . More... | |
static Device | OpenPort (string provider, int port) |
Open a device with the given provider and port . More... | |
Properties | |
static int | NumberOfOpenDevices [get] |
Gets the number of open devices. | |
static EventHandler< DeviceEventArgs > | NewDevice |
Occurs when a new device is created. | |
static EventHandler< DeviceEventArgs > | DeviceDisposed |
Occurs when a new device is disposed. More... | |
Factory object for creating Device objects.
|
static |
Discovers available devices (not vins) with a default time span of 300ms.
This method behaves like the CVB Management Console when discovering devices: It lists all GenICam devices (like GigE Vision and USB3 Vision) and filters out the STEMMER IMAGING Socket Driver devices for GigE Vision (only shows Filter Driver devices).
This method does not throw a TimeoutException if the wait time is exceeded: it just waits for the time span. If a device answers after this span it is not in the returned list.
|
static |
Discovers available devices/nodes depending on the given flags with a default time span of 300ms.
This method does not throw a TimeoutException if the wait time is exceeded: it just waits for the time span. If a device answers after this span it is not in the returned list.
flags | Discovery control flags. |
|
static |
Discovers available devices/nodes depending on the given flags .
This method does not throw a TimeoutException if waitTime is exceeded: it just waits for the given time span. If a device answers after this span it is not in the returned list.
flags | Discovery control flags. |
waitTime | Time to wait for discovery answers from devices. |
|
static |
Discovers available nodes starting on the level of the given discover info with a default time span of 300ms.
This method does not throw a TimeoutException if the wait time is exceeded: it just waits for the time span. If a device answers after this span it is not in the returned list.
info | Start level and parameter set for query. |
|
static |
Discovers available nodes starting on level of the given discover info with a default time span of 300ms.
This method does not throw a TimeoutException if the wait time is exceeded: it just waits for the time span. If a device answers after this span it is not in the returned list.
info | Start level and parameter set for query. |
flags | Discovery control flags. |
|
static |
Discovers available nodes starting on level of the given discover info .
This method does not throw a TimeoutException if waitTime is exceeded: it just waits for the given time span. If a device answers after this span it is not in the returned list.
info | Start level and parameter set for query. |
flags | Discovery control flags. |
waitTime | Time to wait for discovery answers from devices. |
|
static |
Discovers available nodes starting on level of the given accessToken with a default time span of 300ms.
This method does not throw a TimeoutException if the wait time is exceeded: it just waits for the time span. If a device answers after this span it is not in the returned list.
accessToken | Start level and parameter set for query. |
|
static |
Discovers available nodes starting on level of the given accessToken with a default time span of 300ms.
This method does not throw a TimeoutException if the wait time is exceeded: it just waits for the time span. If a device answers after this span it is not in the returned list.
accessToken | Start level and parameter set for query. |
flags | Discovery control flags. |
|
static |
Discovers available nodes starting on level of the given accessToken .
This method does not throw a TimeoutException if waitTime is exceeded: it just waits for the given time span. If a device answers after this span it is not in the returned list.
accessToken | Start level and parameter set for query. |
flags | Discovery control flags. |
waitTime | Time to wait for discovery answers from devices. |
|
static |
Gets all currently opened devices.
|
static |
Opens a device based on the given discovery info .
info | Info describing a discovered device/node. |
acquisitionStack | Acquisition stack to open. |
|
static |
Tries to open a device with the given provider with its default board and port (if applicable).
The opened board/port need not necessary be 0 as this depends on the driver configuration!
IOException | If the given provider could not be opened. |
provider | Name of the device provider. |
acquisitionStack | Acquisition stack to open. |
|
static |
Open a device with the given provider .
For this method the provider is a vin-driver on which a specific board and port is to be opened.
If the driver does not support either one of the board/port select interfaces, you can set the board or port parameters to 0. For non-0 values an exception will be thrown.
provider | Name of the device provider. |
board | Board number to open. |
port | Port number to open. |
IOException | If the given provider could not be opened. |
ArgumentOutOfRangeException | If the given board or port are outside their allowed range. |
NullReferenceException | If board or port select interface are missing. |
|
static |
Opens a device of type T based on the given discovery info .
Used to get a specific type T of device (VinDevice, GenICamdevice...).
info | Info describing a discovered device/node. |
T | : | Device |
|
static |
Tries to open a device of type T with the given provider with its default board and port (if applicable).
The opened board/port need not necessary be 0 as this depends on the driver configuration!
Used to get a specific type T of device (VinDevice, GenICamdevice...).
IOException | If the given provider could not be opened. |
provider | Name of the device provider. |
T | : | Device |
|
static |
Open a device of type T with the given provider .
For this method the provider is a vin-driver on which a specific board and port is to be opened.
If the driver does not support either one of the board/port select interfaces, you can set the board or port parameters to 0. For non-0 values an exception will be thrown.
Used to get a specific type T of device (VinDevice, GenICamdevice...).
provider | Name of the device provider. |
board | Board number to open. |
port | Port number to open. |
IOException | If the given provider could not be opened. |
ArgumentOutOfRangeException | If the given board or port are outside their allowed range. |
NullReferenceException | If board or port select interface are missing. |
T | : | Device |
|
static |
Open a device with the given provider and board .
For this method the provider is a vin-driver on which a specific board is to be opened.
If the driver does not support board select interfaces, you can set the board parameter to 0. For non-0 values an exception will be thrown.
provider | Name of the device provider. |
board | Board number to open. |
IOException | If the given provider could not be opened. |
ArgumentOutOfRangeException | If the given board is outside its allowed range. |
NullReferenceException | If board select interfaces are missing. |
|
static |
Open a device with the given provider and port .
For this method the provider is a vin-driver on which a specific port is to be opened.
If the driver does not support camera select interfaces, you can set the port parameter to 0. For non-0 values an exception will be thrown.
provider | Name of the device provider. |
port | Port number to open. |
IOException | If the given provider could not be opened. |
ArgumentOutOfRangeException | If the given port is outside its allowed range. |
NullReferenceException | If camera select interfaces are missing. |
|
static |
Tries to open a device with the given discovery info .
info | Discovery information. |
device | Device object on success; null on failure. |
acquisitionStack | Acquisition stack to open. |
true
on success; false
on failure.
|
static |
Tries to open a device with the given provider .
For this method the provider is a vin-driver on which a specific board and port is to be opened.
If the driver does not support either one of the board/port select interfaces, you can set the board or port parameters to 0. For non-0 values this method will fail.
provider | Name of the device provider. |
board | Board number to open. |
port | Port number to open. |
device | Device object on success; null otherwise. |
true
on success; false
on failure.
|
static |
Tries to open a device with the given provider with its default board and port (if applicable).
The opened board/port need not necessary be 0 as this depends on the driver configuration!
provider | Name of the device provider. |
device | Device object on success; null otherwise. |
acquisitionStack | Acquisition stack to open. |
true
on success; false
on failure.
|
static |
Tries to open a device with the given provider and board .
For this method the provider is a vin-driver on which a specific board .
If the driver does not support the board select interfaces, you can set the board parameter to 0. For non-0 values this method will fail.
provider | Name of the device provider. |
board | Board number to open. |
device | Device object on success; null otherwise. |
true
on success; false
on failure.
|
static |
Tries to open a device with the given provider and port .
For this method the provider is a vin-driver on which a specific port .
If the driver does not support the camera select interfaces, you can set the port parameter to 0. For non-0 values this method will fail.
provider | Name of the device provider. |
port | Port number to open. |
device | Device object on success; null otherwise. |
true
on success; false
on failure.
|
staticaddremove |
Occurs when a new device is disposed.
Beware of using the associated object as it is either disposed or in the process of disposing.