Using Visual Basic - Keithley SourceMeter 2611 User Manual

Hide thumbs Also See for SourceMeter 2611:
Table of Contents

Advertisement

3-16 Test Script Processor Interaction

Using Visual Basic

The following examples look at how you can download and run Model 2600
Series scripts using Visual Basic. Two scripts were created for these examples.
Both scripts are based on the pseudocode and instrument commands presented
in
Section 2
ple measurements are performed. Source code for this example program can be
downloaded from the Keithley Instruments internet site, www.keithley.com.
Example script 1 – script that does not use functions
The following script is in the file named "MeasCurrScript.tsp." Note that the actual
script contains additional comments, which have not been included here.
Comments are identified by double dashes (--).
reset()
display.screen = display.SMUA
display.smua.measure.func = display.MEASURE_DCAMPS
smua.source.func = smua.OUTPUT_DCVOLTS
smua.source.autorangev = smua.AUTORANGE_ON
smua.source.levelv = 5
smua.source.limiti = 0.1
smua.measure.rangei = 0.1
smua.measure.nplc = 1
smua.source.output = smua.OUTPUT_ON
ntimes = 10
for i = 1, ntimes do
end --for
smua.source.output = smua.OUTPUT_OFF
The primary code that reads the file and downloads the script to the Series 2600
is listed below. This code is executed when you select the Load "Non-Function"
Script option, and then click the Load Script (GPIB) command button. Although
not required, TSP prompts are enabled for this example because they provide
useful test script processor status information when loading and running scripts.
Refer to the Series 2600 System SourceMeter Instruments Reference Manual for
more information about using prompts. As the script is being downloaded, it is
displayed in the Script text box of the GUI (Graphical User Interface), as shown in
Figure
2600S-900-01 Rev. A / May 2006
NOTE
The form file (UserManualExample.frm) can be opened
using any text editor to view the code executed by the
various command buttons.
on using the Series 2600 as a traditional GPIB instrument while multi-
print(smua.measure.i())
3-7.
Return to
Series 2600 System SourceMeters User's Manual
-- Perform following command(s) ntimes.
-- Measure current and put reading in
output queue.
In this section:

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sourcemeter 2602Sourcemeter 2612Sourcemeter 2601

Table of Contents