Models 707B and 708B 199BSwitching Matrix User's Manual
Section 6: Working with the Series 2400
707B-900-01 Rev. B / June 2013
6-3
Example 1: Individual commands for switch-measure
In this example, individual commands are sent to the Model 707B or 708B and SourceMeter
Instrument to perform switch closure and measure actions.
Example program code for the Model 2400
TSB and TSB Embedded cannot be used to control the Model 2400 SourceMeter instrument. You
are expected to send commands to the Model 2400 using a separate application development
environment, such as Microsoft
®
Visual Studio
®
or National Instruments LabVIEW™.
Send the following commands to configure the Model 2400 SourceMeter Instrument.
Example program code for the Model 2400 SourceMeter Instrument
Code
Notes and comments
*RST
*CLS
:FORM:ELEM VOLT, CURR
Reset the instrument.
Clear all errors and reset status bits.
Format return data string to return current and voltage values.
:SOUR:FUNC CURR"
:SOUR:CURR:MODE SWE
:SOUR:CURR:STAR 0
:SOUR:CURR:STOP 10E-3
:SOUR:CURR:STEP 1e-3
:SOUR:SWE:SPAC LIN
Configure current source to perform a linear sweep from 0 to
10 mA in 1 mA steps.
:SENS:VOLT:PROT 10
:SENS:FUNC 'VOLT'
:SENS:VOLT:RANG 5
:SENS:VOLT:NPLC 1
Configure voltage limit.
Configure SMU to measure voltage.
Set a fixed voltage range of 5 V.
Set integration rate to 1 PLC.
:ARM:COUN 1
:TRIG:COUN 11
Complete each sweep once.
Number of steps in sweep = 11.
Example program code for the Model 707B or 708B
Send the following commands to configure the Model 707B or 708B.
Example program code for the Model 707B or 708B
Code
Notes and comments
reset
errorqueue.clear()
Reset the instrument to factory defaults.
Clear all errors.