User`s manual

CYDAS UDR Library User’s Guide CYDAS UDR Library for .NET Description & Use
16
4. Click on the OK button.
MccDaq appears under the References folder in the Solution Explorer window.
The MccDaq Namespace is now referenced by your Visual Studio .NET project.
General UDR Library for .NET language interface description
The MccDaq Namespace provides an interface that exposes each CYDAS UDR Library for .NET method as
a member of a class with virtually the same parameters set as their UDR Library 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 CYDAS UDR 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 UDR Library for .NET
applications access the CYDAS UDR Library data types and functions.
The MccDaq Namespace contains four main classes:
MccBoard class
ErrorInfo class
MccService class
GlobalConfig 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();