6146/6156 DC Voltage/Current Generators Operation Manual
5.9 Sample Program
5-45
5.9 Sample Program
Basic program examples to operate the 6146/6156 from a computer are introduced below.
5.9.1 Common Sub Procedures for Interface Control
5.9.2 Program Example 1-DC Voltage Source and Voltage/Current Measurement
5.9.3 Program Example 2-Memory Setting, Scan Operation and Voltage/Source Measurement
5.9.4 Program Example 3-Sweep Operation and Voltage/Current Measurement
• DMM (Digital Multimeter): ADC 7351A/E
*Only USB is available on the 7351E.
• VIG stands for the 6146/6156, DSR for Device Event Status Register and STB for Status Byte Register
in program codes and comments.
• Common sub procedures are employed for interface control.
Refer to Section 5.9.1, "Common Sub Procedures for Interface Control."
[Operating Environment]
Computer: Fujitsu FMV-D3220
OS: Windows® XP Professional
CPU: Intel® Pentium® 4 524 (3.06 GHz)
Language: Microsoft Office Excel Visual Basic for Applications
For GPIB interface
GPIB hardware: National Instruments NI GPIB-USB-HS
Module: Niglobal.bas, Vbib-32.bas
(NI-488.2 driver software interface file attached with NI GPIB-USB-HS)
6146/6156 GPIB address: 1
DMM GPIB address: 2
For USB interface
Module: ausb.bas
(Interface software attached to the ADC Instruments USB Driver)
6146/6156 USB ID: 1
DMM USB ID: 2