# MccBoard class

The MccBoard class provides access to all of the methods for data acquisition and properties providing board information and configuration for a particular board.

The MccBoard class is a member of the MccDaq namespace. Refer to the Universal Library Language Interface for an explanation of the MccDaq namespace.

## Class constructors

The MccBoard class provides two constructors; one which accepts a board number parameter and one with no arguments.

The following code examples demonstrate how to create a new instance of the MccBoard class using the latter version with a default board number of 0.

VB .NET

Private DaqBoard As MccDaq.MccBoard

DaqBoard = New MccDaq.MccBoard(0)

C# .NET

private MccDaq.MccBoard DaqBoard;

DaqBoard = new MccDaq.MccBoard(0);

The following code examples create a new instance of the MccBoard class with the board number passed to it.

VB .NET

Private DaqBoard As MccDaq.MccBoard

DaqBoard = New MccDaq.MccBoard(BoardNumber)

C# .NET

private MccDaq.MccBoard DaqBoard;

DaqBoard = new MccDaq.MccBoard(BoardNumber);

### Class properties

The MccBoard class also contains six properties to examine or change the board configuration:

Properties | Description
BoardName | Name of the board associated with an instance of the MccBoard class.
BoardNum | Number of the board associated with an instance of the MccBoard class.
BoardConfig | Gets a reference to a cBoardConfig class object. Use this class reference to get or set various board settings.
CtrConfig | Gets a reference to a cCtrConfig class object. Use this class reference to get or set various counter settings.
DIOConfig | Gets a reference to a cDioConfig class object. Use this class reference to get or set various digital I/O settings.
ExpansionConfig | Gets a reference to a cExpansionConfig class object. Use this class reference to get or set various expansion board settings.

Configuration information is stored in the cb.cfg file.

### Class methods

The MccBoard class methods are equivalents of the function calls used in the standard Universal Library. The MccBoard class methods have virtually the same parameters set as their UL counterparts.

The following code examples demonstrate how to call the AIn() method of the MccBoard object MccDaq:

VB .NET | ULStat = DaqBoard.AIn(Chan, Range, DataValue)
C# .NET | ULStat = DaqBoard.AIn(Chan, Range, out DataValue);

Many of the arguments are MccDaq enumerated values. Enumerated values take settings such as range types or scan options and put them into logical groups. For example, to set a range value, reference a value from the MccDaq.Range enumerated type, such as Range.Bip5Volts.

The Universal Library Function Reference contains detailed information about all MccBoard class methods.