
140 Register-Based Programming Appendix B
Programming Examples
The following C language example programs were developed on an
embedded computer using Agilent VISA I/O calls.You can also use a
PC connected via GPIB to an E1406A slot 0 Command Module. The
command module provides direct access to the VXI backplane.
NOTE If you use the E1406A with SCPI commands, use the E1563A/E1564A
SCPI driver which you installed in the E1406A firmware and register
programming is not necessary. Chapter 3 describes the SCPI commands
for the digitizers driver.
This program shows one way to register program a digitizer and includes:
• Read the ID and Device Type Registers
• Read the Status Register
• Make digitizer measurements
• Retrieve the last readings from each channel’s CVT register
• Retrieve all the readings from the two cache registers
• Reset the module
A typical printout from the program is:
ID register = 0xCFFF
Device Type register = 0x7267
Status register = 0x40CE
last readings printout
all readings from all channels printout
E1563A/E1564A is reset