User`s guide

Universal Library User's Guide Universal Library for .NET Description & Use
22
MccService class
The MccService class contains all members for calling utility UL functions. This class contains the following
static methods (you do not need to create an instance of the MccService class to call these methods):
DeclareRevision()
ErrHandling()
FileGetInfo()
FileRead()
GetBoardName()
GetRevision()
WinArrayToBuf()
WinBufAlloc()
WinBufAlloc32()
WinBufFree()
WinBufToArray()
WinBufToArray32()
The following code examples demonstrate how to call a UL for .NET memory management method from
within a Universal 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.
DataLogger Class
The DataLogger class contains all members for reading and converting the data contained in binary log files.
This class contains one property and 14 methods:
FileName property returns the file name associated with an instance of the DataLogger class.
ConvertFile() converts a binary log file to a comma-separated values (.CSV) text file or another text
file format that you specify.
GetAIChannelCount() retrieves the total number of analog channels that were logged in a binary file.
GetAIInfo() retrieves the channel number and unit value of each analog input channel logged in a binary
file.
GetCJCInfo() retrieves the number of CJC temperature channels logged in a binary file.
GetDIOInfo() retrieves the number of digital I/O channels logged in a binary file.
GetFileInfo() retrieves the version level and byte size of a binary file.