System Configuration Functions; Compiling Your C Program For Ni-Vxi/Ni-Visa; Symbols - National Instruments MXI Series Getting Started

Hide thumbs Also See for MXI Series:
Table of Contents

Advertisement

Chapter 7
Using the NI-VXI/NI-VISA Software

System Configuration Functions

Compiling Your C Program for NI-VXI/NI-VISA

Symbols

PCI-MXI-2 for Linux
The System Configuration functions provide the lowest-level initialization
of your VXI controller. For NI-VXI, use the
at the start of each application and the
the end of each application. For NI-VISA, use
at the start of each application and the
each application.
You can use the sample programs included with the NI-VXI software as a
starting point to develop your own C program that uses NI-VXI functions.
First, look over and compile the sample programs using the makefile
provided to get familiar with how the functions operate. The example
programs are broken into multiple files, and each one shows how to use
different groups of functions. You can then modify the sample programs to
try out different aspects of the NI-VXI software.
The sample programs for the Linux gcc compiler are in the
/usr/local/nivxi/examples
/usr/local/vxipnp/linux/NIvisa/Examples
NI-VISA.
The easiest way to compile the sample programs is to use the makefile
included with the NI-VXI/NI-VISA software. For example, go to the
directory and type
examples
You may need to define a symbol so that the NI-VXI library can work
properly with your program. The
applications, but not NI-VISA applications.
application as a Linux NI-VXI application. You can define this symbol
using a
statements in the source code or you can use
#define
the
option in your compiler. If you use a
-D
define the symbol before including the NI-VXI header file
use the makefiles to compile the sample program, the makefile defines the
necessary symbol for you.
InitVXIlibrary()
CloseVXIlibrary()
viClose()
directory for NI-VXI and
.
make
VXILINUX
#define
7-4
function at
viOpenDefaultRM()
function at the end of
directory for
symbol is required for NI-VXI
designates the
VXILINUX
statement, you must
nivxi.h
function
. If you
ni.com

Advertisement

Table of Contents
loading

This manual is also suitable for:

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

Table of Contents