Chapter 2
Setup
2-4
ni.com
If you make changes to the hardware in your system—for example, if
you add a new plug-in card or alter the interrupt used by a device—you
may need to change the BSP default settings to reflect your change.
Refer to your
VxWorks Programmer’s Guide
for full details about
installation.
5.
Load the NI-VXI object files after booting your controller into the
VxWorks operating system. From your
–>
prompt (on the host shell by
default, or on the target based on your settings in the BSP
config.h
file), use the
ld
command to load the NI-VXI objects, as shown here:
–> ld <nivxi.o
–> ld <vxitedit.o
–> ld <resman.o
–> ld <victext.o
6.
Ensure that your NI-VXI configuration files are available. They are
installed on your VXIpc hard drive by default, and the NI-VXI library
finds them in
/ide0/nivxi
. To use the default setting if you are not
booting from
/ide0
, you need to mount the hard drive as follows:
-> usrAtaConfig 0,0,"/ide0"
To change the path the library uses for these files, set the environment
variable
NIVXIPATH
as follows:
-> putenv("NIVXIPATH=your_path")
7.
Run the Resource Manager to set up your VXI system by typing
resman
at the prompt. This program automatically finds all other VXI
devices in the system configuration and handles all appropriate system
setup issues. You must run Resman every time the chassis power is
cycled so your application can access devices in the VXI/VME chassis.
8.
You may need to run vxitedit to make changes to your system if the
default configuration is not suitable for you. Refer to Chapter 3,
, for details about each field you can configure
through the vxitedit configuration editor.
9.
After you finish configuring the system through vxitedit, verify the
system configuration through the victext interactive control utility.
For an example of how to use victext, refer to the
section in Chapter 4,
.
10. There is no configuration tool for NI-VISA or the NI-488.2 (GPIB)
support libraries. To use NI-VISA or NI-488.2, load the objects into
memory after performing the above steps to load NI-VXI. To load
NI-VISA, type the following:
-> ld <visa.o