DeviceFactoryOpen Method (String, Int32, Int32)

CVB.Net Documentation
Open a device with the given provider.

Namespace:  Stemmer.Cvb
Assembly:  Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax

public static Device Open(
	string provider,
	int board,
	int port
)

Parameters

provider
Type: SystemString
Name of the device provider.
board
Type: SystemInt32
Board number to open.
port
Type: SystemInt32
Port number to open.

Return Value

Type: Device
Device object for given provider, board and port combination.
Exceptions

ExceptionCondition
IOExceptionIf the given provider could not be opened.
ArgumentOutOfRangeExceptionIf the given board or port are outside their allowed range.
NullReferenceExceptionIf board or port select interface are missing.
Remarks

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.

See Also

Reference