Download KLR Series Developer`s Guide
Transcript
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 Limit 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 2.3 2.4 2.5 Front Panel (local) Control.......................................................................................................................... 2-1 Digital Control via LAN [E-Series Models Only].......................................................................................... 2-2 Digital Control via GPIB .............................................................................................................................. 2-3 Digital Control via RS 232 [Standard Models only]..................................................................................... 2-3 SECTION 3 - IVI-COM DRIVER 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.2 3.3 3.3.1 3.3.2 3.3.3 3.4 3.4.1 3.4.2 3.4.3 3.5 3.5.1 3.5.2 3.5.3 Specification Compliance ........................................................................................................................ 3-1 Range Checking and Coercion ............................................................................................................... 3-1 Multithreading Support ............................................................................................................................ 3-1 Context-Sensitive Help............................................................................................................................ 3-2 Installer.................................................................................................................................................... 3-2 Rights ...................................................................................................................................................... 3-2 IVI-COM Instrument Driver Functions......................................................................................................... 3-2 Examples Using C ...................................................................................................................................... 3-4 Setting the output to a value and Making a Measurement ...................................................................... 3-4 Using a list to Perform a Series of Operations ........................................................................................ 3-8 Setting Limit Model.................................................................................................................................. 3-11 Examples Using Visual Basic ..................................................................................................................... 3-12 Setting the Output to a Value and Taking a Measurement ..................................................................... 3-12 Using a List to Perform a Series of Operations ....................................................................................... 3-15 Setting Limit Model.................................................................................................................................. 3-16 Examples Using LabView ........................................................................................................................... 3-17 Setting the output to a value.................................................................................................................... 3-18 Getting a voltage and current reading from the power supply................................................................. 3-18 Changing the limit model......................................................................................................................... 3-19 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 KepcoDCPwr Configure Voltage Level.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 KepcoDCPwr Measure [MSR].vi ..................................................................................................... 4-5 KLR DEVGD 020498 i