beautypg.com
KLP SVC 020498
i
TABLE OF CONTENTS
SECTION
PAGE
SECTION 1 - INTRODUCTION
1.1
General Description .................................................................................................................................... 1-1
1.1.1
Drivers ..................................................................................................................................................... 1-1
1.1.2
Communication ....................................................................................................................................... 1-2
1.1.3
Programming........................................................................................................................................... 1-2
1.2
Driver Overview .......................................................................................................................................... 1-2
1.2.1
Initialization.............................................................................................................................................. 1-3
1.2.2
Output Control ......................................................................................................................................... 1-3
1.2.3
Measurement .......................................................................................................................................... 1-3
1.2.4
Virtual Models (User-defined Voltage/Current Limits) ............................................................................. 1-3
1.2.5
Save/Recall (Storage of User-Programmed Active Settings).................................................................. 1-3
1.2.6
LIST (User-Programmed Sequences)..................................................................................................... 1-3
1.2.7
Status ...................................................................................................................................................... 1-4
1.2.7.1
Status Reporting Structure................................................................................................................. 1-4
1.2.7.2
Status Byte Register Set .................................................................................................................... 1-6
1.2.7.3
Standard EvenT Status Register Set ................................................................................................. 1-6
1.2.7.4
Operation Status Register Set ........................................................................................................... 1-7
1.2.7.5
QUEStionable Status Register Set .................................................................................................... 1-7
1.2.7.6
Error/Event Queue ............................................................................................................................. 1-8
1.2.8
Trigger ..................................................................................................................................................... 1-8
SECTION 2 - COMMUNICATION
2.2
Front Panel (local) Control.......................................................................................................................... 2-1
2.3
Digital Control via LAN [E-Series Models Only].......................................................................................... 2-2
2.4
Digital Control via GPIB .............................................................................................................................. 2-3
2.5
Digital Control via RS 232 [Standard Models only]..................................................................................... 2-3
SECTION 3 - IVI-COM DRIVER
3.1.1
Specification Compliance ........................................................................................................................ 3-1
3.1.2
Range Checking and Coercion ............................................................................................................... 3-1
3.1.3
Multithreading Support ............................................................................................................................ 3-1
3.1.4
Context-Sensitive Help............................................................................................................................ 3-1
3.1.5
Installer.................................................................................................................................................... 3-2
3.1.6
Rights ...................................................................................................................................................... 3-2
3.2
IVI-COM Instrument Driver Functions......................................................................................................... 3-2
3.3
Examples Using C ...................................................................................................................................... 3-4
3.3.1
Setting the output to a value and Making a Measurement ...................................................................... 3-4
3.3.2
Using a list to Perform a Series of Operations ........................................................................................ 3-8
3.3.3
Setting Virtual Model ............................................................................................................................... 3-12
3.4
Examples Using Visual Basic ..................................................................................................................... 3-13
3.4.1
Setting the Output to a Value and Taking a Measurement ..................................................................... 3-13
3.4.2
Using a List to Perform a Series of Operations ....................................................................................... 3-16
3.4.3
Setting Virtual Model ............................................................................................................................... 3-18
3.5
Examples Using LabView ........................................................................................................................... 3-19
3.5.1
Setting the output to a value.................................................................................................................... 3-19
3.5.2
Getting a voltage and current reading from the power supply................................................................. 3-20
3.5.3
Changing the virtual model...................................................................................................................... 3-20
SECTION 4 - LABVIEW G DRIVER
4.2
LabView G Instrument Driver...................................................................................................................... 4-1
4.3
LabView G Instrument Driver Functions ..................................................................................................... 4-1
4.4
Using the Driver Functions ......................................................................................................................... 4-3
4.4.1
K
epco
DCP
wr
C
onfigure
V
oltage
L
evel.vi ........................................................................................ 4-3
4.4.1.1
Connector Panel ................................................................................................................................ 4-3
4.4.1.2
Controls and Indicators ...................................................................................................................... 4-3
4.4.1.3
Block Diagram Description................................................................................................................. 4-4
4.4.2
M
easure [
MSR
].vi ..................................................................................................... 4-5