Using Ni-Vxi; Header Files; The Datasize.h File - National Instruments NI-VXI User Manual

Ni-vxi user manual
Table of Contents

Advertisement

Using NI-VXI

Header Files

© National Instruments Corporation
This section presents a general overview of the more commonly used
class of functions available in NI-VXI. Additional information
summarizes how you can use the functions to perform certain tasks and
further describes the general structure of NI-VXI programming.
Although
is the only header file you need to include in your
nivxi.h
program for NI-VXI, the software distribution actually includes several
additional header files along with
type definitions and macros that can make using NI-VXI easier, and
make the code more portable across different platforms. The three main
files of interest are
datasize.h

The datasize.h File

The
file defines the integer types for use in your
datasize.h
program. For example, INT16 is defined as a 16-bit signed integer, and
UINT32 is defined as a 32-bit unsigned integer. Using these types
benefits you by letting you apply specific type sizes across platforms.
Using undefined types can cause problems when porting your
application between platforms. For example, an int in DOS is a 16-bit
number but a 32-bit number in Solaris or LabWindows/CVI.
In addition to the integers,
uses such as interrupt handlers. For example,
interrupt handler type. Merely defining a variable with this type is
sufficient to create the function prototype necessary for your interrupt
handler. Also, different platforms require different flags for use with
interrupt handlers. To simplify this problem,
and
NIVXI_HQUAL
NIVXI_HSPEC
definition and take care of the platform dependencies. See the
Interrupts and Signals section later in this chapter and your
file for more information. In addition, refer to Chapter 3, Software
Overview for specific information.
2 - 9
Chapter 2
Introduction to the NI-VXI Functions
. Some of these files have
nivxi.h
,
, and
busacc.h
defines several types for other
datasize.h
NIVXI_HVXIINT
datasize.h
, which are used in the handler
.
devinfo.h
is an
defines
read me
NI-VXI User Manual

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents