4601 I-V Meter Operation Manual
6.7 Sample Program
6-35
6.7
Sample Program
This section describes program examples to remotely control the 4601 with the GPIB or USB interface.
The following sample programs are provided.
These programs can be downloaded from ADC's website.
http://www.adcmt.com/samplesoft/samplesoft_01.html
•
The sample programs have GPIB versions and UBS versions as follows:
GPIB:
Example 1, Example 2-1, Example 3
USB:
Example1, Example 2-2
The operating environment for the programs is as follows:
OS:
Microsoft Windows XP Professional
Language:
Microsoft Excel Visual Basic for Applications (VBA)
For GPIB interface
GPIB hardware:
National Instruments NI GPIB-USB-HS
Module:
Niglobal.bas, Vbib-21.bas
(Driver software attached with NI GPIB-USB-HS)
For USB interface
Module:
ausb.bas
(ADC Instrument USB Driver)
Download the ADC Instrument USB Driver from ADC's website.
http://www.adcmt.com/driversoft/USB_driver.html
Program contents
Example 1 The 4601 generates DC voltage in the DC source mode and measures Voc (open-circuit voltage)
and Isc (short-circuit current).
Example 2-1 The 4601 executes 99-step linear sweep in the sweep source mode, receives a SRQ that indicates
100 data have been stored in the measurement memory, and reads out the data collectively from the
measurement memory in the ASCII format.
Temperature measurement for two channels using a T-type thermocouple is executed before and
after sweep
Example 2-2 The 4601 executes 99-step linear sweep in the sweep source mode, polls the status register to find
out that 100 data have been stored in the measurement memory, and reads out the data one by one
from the measurement memory in the ASCII format collectively.
Temperature measurement for two channels using a T-type thermocouple is executed before and
after sweep
Example 3 The 4601 executes 99-step linear sweep in the sweep source mode, receives a SRQ that indicates
100 data have been stored in the measurement memory, and reads out the measurement memory in
the binary format collectively.
Temperature measurement for two channels using a T-type thermocouple is executed before and
after sweep