User manual
Register-Based Programming 107Appendix B
Programming Examples
Some examples follow to illustrate programming the multiplexer at the
register level, including the following examples. Unless noted, each program
is a C-language program.
• Example: Opening/Closing Multiplexer Channels
• Example: Using a Multimeter with the Multiplexer
• Example: Reading Module ID, Device Type, and Status Registers
• Example: Scanning Channels
• Example: Scanning Channels (HP-UX)
The C language programs were developed using Turbo C++ programming
language on a PC connected via GPIB to the E1406A Command Module.
"DIAG:POKE" and "DIAG:PEEK?" are the E1406A commands for direct
register access.
NOTE The examples in this section illustrate methods required when using a VXI
slot 0 interface other than the E1406A, for which you would substitute the
equivalent register access commands or functions. If a E1406A was used,
you can use the E1460A SCPI driver in the E1406A firmware and
register-based programming is not required.)