User`s manual

CYDAS UDR Library User’s Guide CYDAS UDR Library for .NET Description & Use
18
MccService class
The MccService class contains all members for calling utility UDR Library functions. This class contains
nine static methods (you do not need to create an instance of the
MccService class to call these methods):
DeclareRevision()
WinArrayToBuf()
ErrHandling()
WinBufToArray()
GetRevision()
WinBufAlloc()
FileGetInfo()
WinBufFree()
FileRead()
The following code examples demonstrate how to call a UDR Library for .NET memory management method
from within a CYDAS UDR Library program:
WindowHandle=MccService.WinBuffAlloc(1000)
MccService.WinBuffFree(WindowHandle)
GlobalConfig class
The GlobalConfig class contains all of the members for getting global configuration information. This class
contains three properties:
MccDaq.GlobalConfig.NumBoards property returns the maximum number of boards that you can install
at one time.
ConfigGlobal=MccDaq.GlobalConfig.NumBoards
MccDaq.GlobalConfig.NumExpBoards property returns the maximum number of expansions boards that
are allowed to be installed on the board.
ConfigGlobal=MccDaq.GlobalConfig.NumExpBoards
MccDaq.GlobalConfig.Version property is used to determine compatibility with the library version.
ConfigGlobal=MccDaq.GlobalConfig.Version
Each of these properties is typed as an Integer.
MccDaq enumerations
The MccDaq Namespace contains enumerated values which are used by many of the methods available from
the MccDaq classes (see Table 5-1). Refer to specific method descriptions in the CYDAS UDR Library
Function Reference for the values of each enumerated type. This document is available on our website, on this
software CD, and C:\MCC\Documents (by default) after software is installed.
Table 5-1. MccDaq Enumerated Values
Enumeration Name Description
MccDaq.BCDMode Lists all of the counting format options.
MccDaq.C8254Mode Lists all of the operating modes for 8254 counters.
MccDaq.CompareValue List all options for comparing values while configuring a 9513 counter.
MccDaq.ConnectionPin
Defines the connector pins to associate with the signal type and direction when
calling the SelectSignal() method.
MccDaq.CounterControl Defines the possible state of each counter channel (enabled/disabled).