User`s manual

15
5
CYDAS UDR Library for .NET Description & Use
Programming the CYDAS UDR Library API is now available through the various languages supported by the
Microsoft .NET framework. All .NET applications access the 32-bit Windows CYDAS UDR Library
(CBW32.DLL) through the MccDaq .NET assembly (MCCDAQ.DLL). The MccDaq assembly provides an
interface that exposes each CYDAS UDR Library function that is callable from the .NET language.
The CYDAS UDR Library for .NET is designed to provide the same "look and feel" as the CYDAS UDR
Library for 32-bit Windows. This design makes it easier to port over existing data acquisition programs, and
minimizes the learning curve for programmers familiar with the CBW32.DLL interface.
In the CYDAS UDR Library for .NET, each function is exposed as a class method with virtually the same
parameter set as their UDR Library counterparts.
Configuring a UDR Library for .NET project
In a .NET application, there are no header files to include in your project. You define methods and constants
by adding the MccDaq assembly, or Namespace, as a reference to your project. You access UDR Library for
.NET methods through a class that has the CYDAS UDR Library as a member.
To add the MccDaq Namespace as a reference in a Visual Studio .NET project:
1. Start a new Visual Basic or C# project in Visual Studio .NET.
2. From the Visual Studio .NET Solution Explorer window, right-click on
References and select Add
Reference.
The
Add Reference window appears.
3. From the
.NET tab, select the MccDaq option from the displayed list of .NET assemblies and click on the
Select button.
MccDaq displays in the
Selected Components area on the window.