User`s guide
Universal Library User's Guide Universal Library for .NET Description & Use
20
MccDaq appears under the References folder in the Solution Explorer window.
The MccDaq Namespace is now referenced by your Visual Studio .NET project.
General UL for .NET language interface description
The MccDaq Namespace provides an interface that exposes each Universal Library for .NET method as a
member of a class with virtually the same parameters set as their UL counterparts. The MccDaq Namespace is
a logical naming scheme for grouping related types. The .NET Framework uses a hierarchical naming scheme
for grouping types into logical categories of related functionality.
When you develop a .NET application that uses the Universal Library, you add the MccDaq Namespace as a
reference to your project. There are no "header" files in a .NET project.
The MccDaq Namespace contains the classes and enumerated values by which UL for .NET applications
access the Universal Library data types and functions. The MccDaq Namespace contains five main classes:
MccBoard class
ErrorInfo class
MccService class
GlobalConfig class
DataLogger class
The MccDaq assembly allows you to design Common Language Specification (CLS)-compliant programs. A
CLS-compliant program contains methods that can be called from any existing or future language developed
for the Microsoft .NET framework. Use CLS-compliant data types to ensure future compatibility.
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.
Class Constructors
The MccBoard class provides two constructors; one which accepts a board number argument 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:
Visual Basic
Private DaqBoard As MccDaq.MccBoard
DaqBoard = New MccDaq.MccBoard()
C#
private MccDaq.MccBoard DaqBoard;
DaqBoard = new MccDaq.MccBoard();