User`s manual

Using the Multiplexer 47
Figure 2-8. Scanning with VXIbus Triggers
The following example program was developed with the ANSI C language
using the Agilent VISA extensions. The program was written and tested in
Microsoft
®
Visual C++ but should compile under any standard ANSI C
compiler.
To run the program you must have the Agilent SICL Library, the Agilent
VISA extensions, and an Agilent 82340 or 82341 GPIB module installed
and properly configured in your PC. An Agilent E1406 Command Module
is required.
This following example resets and configures the multimeter for DC
Voltage measurements, resets and configures the multiplexer for 2-Wire
configuration TTL Trigger bus synchronization, use of the analog bus, and
scanning channels 00 through 09.
#include <visa.h>
#include <stdio.h>
#include <stdlib.h>
/* Interface address is 112, Module secondary address is 14*/
#define INSTR_ADDR “GPIB0::9::14::INSTR”
/* interface address for Agilent E1412 Multimeter */
#define MULTI_ADDR “GPIB0::9::3::INSTR”
int main()