Chapter 3
Measurement Studio Visual C++ Class Libraries
©
National Instruments Corporation
3-5
Measurement Studio User Manual
Common
The Measurement Studio Common Visual C++ class library provides data
types and classes that other Measurement Studio Visual C++ class libraries
use. The classes that are implemented natively in Visual C++ include the
CNiVector
and
CNiMatrix
classes.
The Common class library includes the following data types:
•
CNiScalarVector
—Implements a vector object that contains scalar
numbers.
•
CNiScalarMatrix
—Implements a matrix object that contains scalar
numbers.
•
CNiString
—Extends the MFC
CString
class with streaming
operators for a variety of data types and with various other string
manipulation functions.
•
CNiVariant
—Extends the MFC
COleVariant
class with additional
constructors and assignment operators for
CNiComplex
-,
CNiVector
-, and
CNiMatrix
-derived objects and with cast operators
to convert
CNiVariant
objects to a variety of other object types.
•
CNiException
—Extends the MFC
CException
class and serves as
the base class for many Measurement Studio exceptions.
•
CNiRegKey
—Encapsulates the interface to the Windows registry. Use
this class and related classes to open and create keys, get keys, and get
values associated with those keys.
Tip
For more detailed information about the Common class library, refer to the
Common
Visual C
++
Class Library Overview
topic in the
NI Measurement Studio Help
.
Instrument Drivers
Measurement Studio includes a set of class libraries that provides
Visual C++ classes that you can use to program instruments, such as digital
multimeters and oscilloscopes. These Visual C++ classes provide native
C++ interfaces to ANSI C DLL-based Interchangeable Virtual Instrument
(IVI) drivers. Each Measurement Studio instrument driver class library
includes a set of Visual C++ classes that interfaces to a single IVI driver.
The Measurement Studio Visual C++ classes provide enhancements to the
ANSI C interface, such as automatic data type translation and organization
of properties and methods into a logical hierarchy.