Sweep Branching Program Example - Keithley SourceMeter 2400 User Manual

Sourcemeter 2400 series source measure unit
Hide thumbs Also See for SourceMeter 2400:
Table of Contents

Advertisement

®
2400 Series SourceMeter
User's Manual

Sweep branching program example

The code fragment below is a Visual Basic sweep branching subroutine. This example sets
up source memory locations 1-3 as indicated in code comments. Location 100 is used as a
dummy location. Failure at any one of locations 1-3 causes a branch to location 100 to
stop the sweep as soon as possible in the event of failure. For all three source memory
locations, operating modes are set as follows:
Source function: volts, 10V output voltage
Measurement function: current, 100mA range, 105mA compliance
Delay: 1s
Test limits for the three memory locations are:
Location 1: 10mA to 20mA
Location 2: 20mA to 30mA
Location 3: 30mA to 40mA
Attribute VB_Name = "Headers"
Option Explicit
Public Sub RunSourceMemory()
Dim intGPIB As Integer
Dim strAnswer As String
intGPIB = 24
Call OutputCmd(intGPIB, ":TRAC:CLE")
'Setup Source Memory Location 1
'------------------------------
Call OutputCmd(intGPIB, "*RST")
Call OutputCmd(intGPIB, ":SOUR:FUNC VOLT")
Call OutputCmd(intGPIB, ":SENS:FUNC 'CURR:DC'")
Call OutputCmd(intGPIB, ":SENS:CURR:PROT .105")
Call OutputCmd(intGPIB, ":SENS:CURR:RANGE .1")
Call OutputCmd(intGPIB, ":SOUR:DEL 1")
Call OutputCmd(intGPIB, ":SOUR:VOLT 10")
Call OutputCmd(intGPIB, ":CALC2:FEED CURR")
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Sweep Operation
10-27
'Primary address = 24.
'Clear Readings from
Buffer
'Restore GPIB default
conditions.
'Current Source
Function.
'Current Sense Function.
'Set 105mA Compliance
'Set 100mA Current Mea-
sure Range
'Set Source Delay to 1
'10V Source Voltage.
'Send Current(A) Read-
ings to Buffer

Advertisement

Table of Contents
loading

Table of Contents