Programming Examples; System Configuration; Example Program - HP VXI E1476A User's Manual And Programming Manual

64-channel, 3-wire multiplexer module
Table of Contents

Advertisement

Programming Examples

System
Configuration

Example Program

1. Borland Intl., Inc.
112 HP E1476A Register-Based Programming
Multimeter status bit 5 (multimeter complete) is monitored to
determine when the analog-to-digital (A/D) conversion is in progress,
and thus, when to advance the channel. This enables each channel to
be measured before the readings are read from the buffer.
The channel can also be advanced by monitoring bit 4 (Data Ready).
However, before measuring the next channel, readings from the
previous channel must be read from the buffer in order to clear the bit.
Multimeter Autozero is often turned on in order to detect when bit 5 is
active.
The examples in this section demonstrate how to direct register program the
multiplexer. The examples in this section include:
Reading the ID, Device Type, and Status Registers
Closing/Opening a channel, Stand-Alone Multiplexer Measurements
Scanning through channels
The following C language example programs were developed on an HP
RADI-EPC7 VXI embedded computer using Borland's Turbo C++®
1
programming language
use an HP Vectra (IBM PC compatible) computer connected via HP-IB to
the HP E1406A slot 0 Command Module. The command module simply
provides direct access to the VXI backplane.
If you use the HP E1406A with SCPI commands, you would use the
HPE1476A SCPI driver which you installed in the HPE1406A firmware and
register programming would not be necessary. Chapter 3 describes the SCPI
commands for the switchbox driver.
The following example program contains segments that:
1. Read the ID and Device Type Registers.
2. Read the Status Register.
3. Close a group of channels and the associated tree relay.
4. Resets the module to open all channels.
5. Scans through all the channels on the module.
and using the SICL interface library. You can also
Appendix B

Advertisement

Table of Contents
loading

Table of Contents