Chapter 3
Developing Your Application
©
National Instruments Corporation
3-3
VXI-1394 Interface for Windows NT/98
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
The History window shows the result of the command execution, such as:
Return Status (0): Success.
Value = 0xBFF6
If the value ends with
FF6
, you have successfully read the National
Instruments manufacturer ID from the VXI-1394 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 of the devices listed in the Connection View of T&M Explorer. In this
way, you can verify that your VXI-1394 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 VIC operation and commands, refer to the
VIC online help.
Alternatively, you can use VISAIC to interact with your VXI, VME, GPIB
and serial devices. VISAIC lists the available devices, similar to what T&M
Explorer displays. By double-clicking on a given device, you can open a
VISA session and access the device through it. For more information
regarding VISAIC, use the right-click help available from all panels.
NI-488.2 Interactive Control
You can use the NI-488.2 Interactive Control utility to enter NI-488
functions and NI-488.2 routines interactively and see the values returned
by the function calls. You can use the utility to do the following:
•
Verify GPIB communication with your device quickly and easily
•
Learn the NI-488 functions and NI-488.2 routines before you write
your application
•
Become familiar with the commands of your device