User`s guide

5
Table of Contents
1 Introducing the Universal Library ......................................................... 10
Universal Library overview .............................................................................................................. 10
2 Installation and Configuration ............................................................... 12
Installing the Universal Library ........................................................................................................ 12
The CB.CFG file and InstaCal ......................................................................................................... 12
Installation .NET support .............................................................................................................. 12
Licensing information ...................................................................................................................... 12
Redistributing a custom UL application ........................................................................................... 12
Distributing InstaCal in addition to your custom UL application ................................................... 13
Integrating InstaCal into your custom UL installation CD or disk ................................................. 13
3 Getting Started ....................................................................................... 14
Example programs .......................................................................................................................... 14
4 Universal Library Description and Use ................................................. 15
General UL language interface description ..................................................................................... 15
Function arguments ..................................................................................................................... 15
Constants .................................................................................................................................... 15
Options arguments ...................................................................................................................... 15
Error handling .............................................................................................................................. 16
16-bit values using a signed integer data type ............................................................................ 16
Using the Universal Library in Windows .......................................................................................... 16
Real-time acquisition under Windows ......................................................................................... 16
Processor speed ......................................................................................................................... 16
Visual Basic for Windows ............................................................................................................ 17
Microsoft Visual C++ ................................................................................................................... 17
Borland C /C++ for Windows ....................................................................................................... 17
Delphi example programs ........................................................................................................... 18
5 Universal Library for .NET Description & Use ..................................... 19
Configuring a UL for .NET project ................................................................................................... 19
General UL for .NET language interface description ....................................................................... 20
MccBoard class ........................................................................................................................... 20
ErrorInfo class ............................................................................................................................. 21
MccService class ........................................................................................................................ 22
GlobalConfig class ...................................................................................................................... 22
DataLogger Class........................................................................................................................ 22
MccDaq enumerations ................................................................................................................ 23
Parameter data types .................................................................................................................. 25
Differences between the UL and UL for .NET ................................................................................. 25
Board number ............................................................................................................................. 25
MCC classes ............................................................................................................................... 26
Methods ...................................................................................................................................... 26
Enumerated types ....................................................................................................................... 26
Error handling .............................................................................................................................. 27
Service methods ......................................................................................................................... 27
Configuration methods ................................................................................................................ 27
Data Logger methods .................................................................................................................. 28
6 Analog Input Boards .............................................................................. 29
Introduction ..................................................................................................................................... 29
Trigger support ................................................................................................................................ 29
Digital trigger ............................................................................................................................... 29
Analog trigger .............................................................................................................................. 29
Pretrigger implementations ......................................................................................................... 30
Sampling rate using SINGLEIO ...................................................................................................... 30