cBoardConfig Class

Contains all members for setting and getting board level configuration.

[Visual Basic]

Public Class cBoardConfig

Inherits System.Object

[C#]

public class cBoardConfig : System.Object

Class constructor

public cBoardConfig (int MccBoard)

Creates a new instance of the cBoardConfig class with a reference to an MccBoard object passed to it.

Public Methods

The cBoardConfig class configuration methods are accessible from the BoardConfig property.

The configuration methods call the UL function cbGetConfig() or cbSetConfig() with BOARDINFO as the main category, and a subcategory that is specific to the method. For example, the BoardConfig.GetRange() method calls cbGetConfig() with BOARDINFO and BIRANGE to retrieve the range value set for a board.

Refer to the Universal Library Function Reference for details on all UL for .NET configuration methods.

Example usage

[Visual Basic]

Dim Status As ErrorInfo

Dim Board0 As MccBoard

Dim BoardType As Integer

Dim NumAdChans As Integer

Board0 = New MccBoard(0)



Status = Board0.BoardConfig.GetNumAdChans(NumAdChans)

NumAdChans = 8

Status = Board0.BoardConfig.SetNumAdChans(NumAdChans)



[C#]

MccBoard board0;

ErrorInfo status;

MccBoard board0 = new MccBoard (0);

int BoardType;

int NumAdChans;



Status = Board0.BoardConfig.GetNumAdChans(out NumAdChans);

NumAdChans = 8;

Status = Board0.BoardConfig.SetNumAdChans(NumAdChans);