Chapter 4
Developing Your Application
4-2
ni.com
Device Interaction
You can interact with your VXI devices by using the victext utility.
This utility lets you interactively control your VXI devices.
Try the following in victext.
In the Command entry field type:
help vxiinreg
This help file shows you the syntax for this command, which reads VXI
device configuration registers. The first argument is a logical address, and
the second is the offset of the VXI device configuration register to be read.
Type:
vxiinreg 0,0
This should return a value, such as:
Return Status (0): SUCCESS.
value = 0x9ff6
If the value ends with
ff6
, you have successfully read the National
Instruments manufacturer ID from the VXIpc controller’s ID register.
You may now want to read the configuration registers from other VXI
devices in your system using the command
vxiinreg
. This command
accesses only the upper 16 KB of A16 space. Try reading a register from
each device listed in the Resource Manager Display of vxitedit. In this way,
you can verify that your VXIpc can access each of the devices in your VXI
system successfully.
You can also access VXI and VME devices that are configured in A16,
A24, and A32 address space by using the
vxiin
or
vxiout
commands.
For more information regarding victext operation and commands, refer to
the
NI-VXI Text Utilities Reference Manual
.
VME Support
The Resman utility identifies and configures VXI devices but does not
configure VME devices. The VME specification does not define the
initialization and configuration procedures that the VXI specification
requires.