CVB.Net 14.0
VinDriverEnumeration Struct Reference

Helper object to enumerate boards and ports. More...

Public Member Functions

 VinDriverEnumeration (Device device)
 Ctor. More...
 
int GetNumPortsForBoard (int board)
 Gets the number of ports for a given board . More...
 

Properties

int NumBoards [get]
 Gets the number of boards the Vin driver of the associated device has.
 

Detailed Description

Helper object to enumerate boards and ports.

Enumerating boards/ports on not opened drivers/boards is at least inefficient. It can also return an error if the board is opened in another process exclusively or if the configuration is invalid.

Constructor & Destructor Documentation

◆ VinDriverEnumeration()

Ctor.

Parameters
deviceDevice having at least board select 2 or a port select interface.

Member Function Documentation

◆ GetNumPortsForBoard()

int GetNumPortsForBoard ( int  board)

Gets the number of ports for a given board .

Parameters
boardBoard number to retrieve ports for.
Returns
Number of ports on the given board .
Exceptions
System.ArgumentOutOfRangeExceptionIf the given board is outside its allowed range.