Shared Memory; Ni-Vxi Api Notes; Compiler Symbols - National Instruments MXI-2 Series Getting Started

Pci-based interface for windows
Hide thumbs Also See for MXI-2 Series:
Table of Contents

Advertisement

Chapter 3
Developing Your Application
Note viMemAlloc()
continuous buffers which work efficiently with the move operations.

Shared Memory

NI-VXI API Notes

Note
LabWindows/CVI automatically defines the correct symbol. You do not need to
define
VXINT
PCI-Based MXI-2 Interface for Windows
or
VXImemAlloc()
In the Hardware Configuration settings of the PCI-MXI-2 and
PCI-MXI-2 Universal in MAX, you can share memory on your computer
or from DRAM added to the PCI-MXI-2 and PCI-MXI-2 Universal.
Right-click any of the settings or refer to the help in MAX for more
information. You can access shared memory on your computer using
in NI-VXI and
VXImemAlloc()
The following sections apply only if you are using the NI-VXI API. NI
recommends that all new VXI/VME applications use the NI-VISA API,
but you can still develop with the older NI-VXI API for compatibility with
legacy code.

Compiler Symbols

You may need to define certain compiler symbols so that the NI-VXI
library can work properly with your program. The required symbol
indicates your operating system platform; for example,
the application as a Windows 2000/NT/Me/98 application.
when using LabWindows/CVI.
The additional symbol
the resulting application is binary compatible with other National
Instruments VXI controllers using the same operating system. This symbol
may cause a slight performance degradation when you use low-level
VXIbus access functions.
You can define these symbols using
code or using the appropriate option in your compiler (typically either
or
). If you use
-D
/D
before the line that includes the NI-VXI API header
returns 32-bit aligned, page-locked,
viMemAlloc()
BINARY_COMPATIBLE
#define
statements, they must appear in the code
#define
3-8
in VISA.
designates
VXINT
is optional. It ensures that
statements in your source
.
nivxi.h
ni.com

Advertisement

Table of Contents
loading

This manual is also suitable for:

Vxi-mxi-2Vme-mxi-2Pci-mxi-2Pci-mxi-2 universal

Table of Contents