Page 4
Introduces example programs for controlling the B2961B/B2962B. See Keysight B2961B/B2962B User's Guide for information about the B2961B/B2962B itself. Refer to Keysight B2961B/B2962B SCPI Command Reference for the SCPI messages and conventions, data output format, error code, and the details on Keysight B2961B/B2962B SCPI commands.
Controlling the Source Output Controlling the Measurement Function Using the Math Function Using the Trace Buffer Using Program Memory This chapter describes basic information to control the Keysight B2961B/B2962B. Table 1-1 Conventions Used in This Document for Expressing SCPI Commands Convention Description Angle brackets <...
Microsoft Visual Basic .NET software • Connecting to the Interface Keysight B2961B/B2962B supports GPIB, LAN, and USB interfaces. All three interfaces are live at power-on. Select the interface used for controlling the B2961B/B2962B. Connect your interface cable to the appropriate interface connector.
= "TCPIP0::xxx.yyy.zzz.aaa::5025::SOCKET" Where, xxx.yyy.zzz.aaa is the IP Address displayed on the LAN Configuration dialog box opened by pressing the More > I/O > LAN > Config function keys. Example: address = "TCPIP0::192.168.0.1::5025::SOCKET" Keysight B2961B/B2962B Programming Guide, Edition 1...
“Setting the Remote Display Mode” • “Making a Screen Dump” • “Performing a File Operation” • Setting the Power Frequency Power line frequency is set by the :SYST:LFR command. Example ioObj.WriteString(":SYST:LFR 50") ’50 Hz ioObj.WriteString(":SYST:LFR 60") ’60 Hz Keysight B2961B/B2962B Programming Guide, Edition 1...
Example ioObj.WriteString("*TST?") Dim d As String = ioObj.ReadString() If d = 0 Then Console.WriteLine("PASS") Else Console.WriteLine("FAIL") End If This example performs the self-test, and displays the test result, pass or fail. Keysight B2961B/B2962B Programming Guide, Edition 1...
If the error buffer is empty, the response is +0,“No error”. Clearing the Error Buffer Error buffer is cleared by the :SYST:ERR:ALL? command. This command reads and returns all items in the error buffer, and clears the buffer. Keysight B2961B/B2962B Programming Guide, Edition 1...
Instrument’s (mainframe) identification and firmware revision are read by the *IDN? command. Example ioObj.WriteString("*IDN?") Dim d As String = ioObj.ReadString() Console.WriteLine(d) The returned value will be as follows. Keysight Technologies,model,serial,revision model: mainframe model number serial: mainframe serial number revision: firmware revision number Keysight B2961B/B2962B Programming Guide, Edition 1...
“Setting the Low Terminal State” • “Enabling or Disabling the High Capacitance Mode” • “Enabling or Disabling the Over Voltage/Current Protection” • “Specifying the Output-Off Status” • “Enabling or Disabling the Automatic Output-On Function” • Keysight B2961B/B2962B Programming Guide, Edition 1...
’Outputs 1 mA immediately ioObj.WriteString(":SOUR:FUNC:TRIG:CONT 1") ioObj.WriteString(":SOUR:FUNC:MODE VOLT") ioObj.WriteString(":SOUR:VOLT:MODE FIX") ioObj.WriteString(":SOUR:VOLT:TRIG 1") ’Outputs 1 V by a trigger Stopping the Source Output Source output is stopped and disabled by the :OUTP OFF command. Example ioObj.WriteString(":OUTP OFF") Keysight B2961B/B2962B Programming Guide, Edition 1...
Pulse base and peak values are set by the :SOUR:<CURR|VOLT> command and the :SOUR:<CURR|VOLT>:TRIG command respectively. Example ioObj.WriteString(":SOUR:FUNC:SHAP PULS") ioObj.WriteString(":SOUR:PULS:DEL 1E-3") ’Delay time 1 ms ioObj.WriteString(":SOUR:PULS:WIDT 1E-3") ’Pulse width 1 ms ioObj.WriteString(":SOUR:VOLT 0") ’Base 0 V ioObj.WriteString(":SOUR:VOLT:TRIG 1") ’Peak 1 V Keysight B2961B/B2962B Programming Guide, Edition 1...
1") ’Frequency 1 Hz To define your desired waveform Use the :SOUR:ARB:<CURR|VOLT>:UDEF commands. The :SOUR:ARB:<CURR|VOLT>:UDEF[:LEV] commands set the output level. The :SOUR:ARB:<CURR|VOLT>:UDEF:TIME command sets the step time between adjacent points in a waveform. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 21
:ARB:<CURR|VOLT>:EXP:END :ARB:<CURR|VOLT>:EXP:STAR:TIME :ARB:<CURR|VOLT>:EXP:STAR :ARB:<CURR|VOLT>:EXP:TIME Ramp waveform :<CURR|VOLT>:MODE ARB, :ARB:FUNC RAMP :ARB:<CURR|VOLT>:RAMP:END :ARB:<CURR|VOLT>:RAMP:STAR:TIME :ARB:<CURR|VOLT>:RAMP:STAR :ARB:<CURR|VOLT>:RAMP:RTIM :ARB:<CURR|VOLT>:RAMP:END:TIME Sinusoidal waveform :<CURR|VOLT>:MODE ARB, :ARB:FUNC SIN :ARB:<CURR|VOLT>:SIN:PMAR:PHAS :ARB:<CURR|VOLT>:SIN:AMPL :ARB:<CURR|VOLT>:SIN:OFFS :ARB:<CURR|VOLT>:SIN:FREQ For all waveform, period must not exceed 1000 seconds. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 22
Trapezoidal waveform :<CURR|VOLT>:MODE ARB, :ARB:FUNC TRAP :ARB:<CURR|VOLT>:TRAP:TOP:TIME :ARB:<CURR|VOLT>:TRAP:TOP :ARB:<CURR|VOLT>:TRAP:END:TIME :ARB:<CURR|VOLT>:TRAP:STAR:TIME :ARB:<CURR|VOLT>:TRAP:STAR :ARB:<CURR|VOLT>:TRAP:RTIM :ARB:<CURR|VOLT>:TRAP:FTIM Triangle waveform :<CURR|VOLT>:MODE ARB, :ARB:FUNC TRI :ARB:<CURR|VOLT>:TRI:TOP :ARB:<CURR|VOLT>:TRI:END:TIME :ARB:<CURR|VOLT>:TRI:STAR:TIME :ARB:<CURR|VOLT>:TRI:STAR :ARB:<CURR|VOLT>:TRI:RTIM :ARB:<CURR|VOLT>:TRI:FTIM For all waveform, period must not exceed 1000 seconds. Keysight B2961B/B2962B Programming Guide, Edition 1...
Pulse output :FUNC PULS :FUNC DC :FUNC DC :FUNC PULS Linear Sweep :SWE:SPAC LIN DC output Pulse output DC output Pulse output :FUNC DC :FUNC PULS :FUNC DC :FUNC PULS Logarithmic Sweep :SWE:SPAC LOG Keysight B2961B/B2962B Programming Guide, Edition 1...
FIX") ’Not change ioObj.WriteString(":SOUR:SWE:RANG AUTO") ’Auto for each step Setting the List Sweep Output List sweep output is set by the :SOUR:<CURR|VOLT>:MODE LIST command and the :SOUR:LIST:<CURR|VOLT> command Example ioObj.WriteString(":SOUR:VOLT:MODE LIST") ioObj.WriteString(":SOUR:LIST:VOLT 0,2,4,6,8,10,0") Keysight B2961B/B2962B Programming Guide, Edition 1...
: Measurement :TRIG:ACQ:DEL Trigger Time Pulse source :FUNC PULS, :CURR:MODE FIX or :VOLT:MODE FIX Voltage or current Peak value :CURR:TRIG or :VOLT:TRIG Previous value :PULS:WIDT :SOUR:WAIT :PULS:DEL :SENS:WAIT :TRIG:TRAN:DEL :TRIG:ACQ:DEL : Measurement Trigger Time Keysight B2961B/B2962B Programming Guide, Edition 1...
Enabling or Disabling the High Capacitance Mode High capacitance mode is set by the :OUTP:HCAP command. Example ioObj.WriteString(":OUTP:HCAP ON") Enabling or Disabling the Over Voltage/Current Protection Over voltage/current protection is set by the :OUTP:PROT command. Example ioObj.WriteString(":OUTP:PROT ON") Keysight B2961B/B2962B Programming Guide, Edition 1...
EMUL") ’Sets emulation mode ioObj.WriteString(":OUTP:RES:EMUL:VOLT 0.1,0.2,0.3,0.4,0.5,0.6,0.7") ’Sets voltage list data for emulation table ioObj.WriteString(":OUTP:RES:EMUL:CURR 0.075,0.075,0.07,0.06,0.05,0.03,0.01 ") ’Sets current list data for emulation table ioObj.WriteString(":OUTP:RES:EMUL:MODE CURR,CURR,CURR,VOLT,VOLT,VOLT") ’Sets source type list data for emulation table ioObj.WriteString(":OUTP:RES:STAT ON") ’Enables function Keysight B2961B/B2962B Programming Guide, Edition 1...
Measurement mode is set by the :SENS:FUNC commands. Example ioObj.WriteString(":SENS:FUNC:ALL") ioObj.WriteString(":SENS:FUNC:OFF ""RES""") ioObj.WriteString(":SENS:FUNC:OFF:ALL") ioObj.WriteString(":SENS:FUNC ""RES""") Enabling or Disabling the Resistance Compensation Resistance compensation is set by the :SENS:RES:OCOM command. Example ioObj.WriteString(":SENS:RES:OCOM ON") ’Enables compensation Keysight B2961B/B2962B Programming Guide, Edition 1...
| [:ALL]>:TIM, :TRIG<:ACQ | [:ALL]>:COUN, and :TRIG<:ACQ | [:ALL]>:DEL commands. See Figures 1-4, 1-5, and 1-6. Example ioObj.WriteString(":TRIG:SOUR TIM") ioObj.WriteString(":TRIG:TIM 4E-3") ’Interval 4 ms ioObj.WriteString(":TRIG:COUN 11") ’11 points ioObj.WriteString(":TRIG:ACQ:DEL 2E-3") ’Meas delay 2 ms Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 31
Staircase sweep source :FUNC DC, :CURR:MODE SWE or :VOLT:MODE SWE Voltage or current :CURR:STOP or :VOLT:STOP Trigger Trigger Trigger Stop value :TRIG:ACQ:DEL :SENS:WAIT :SOUR:WAIT :TRIG:TRAN:DEL Previous value : Measurement :CURR:STAR or :VOLT:STAR Start value Time Keysight B2961B/B2962B Programming Guide, Edition 1...
:FETC?command returns the latest data for the parameters specified by the :FORM:ELEM:SENS command. For details on the :FETC subsystem commands, see SCPI Command Reference. Stopping Measurement Measurement is stopped by the :OUTP OFF command. Example ioObj.WriteString(":OUTP OFF") Keysight B2961B/B2962B Programming Guide, Edition 1...
Enabling or Disabling the Math Function Math function is set by the :CALC:MATH:STAT command. Example ioObj.WriteString(":CALC:MATH:STAT ON") Reading Math Result Data Math result data is read by the :CALC:MATH:DATA? commands. Example ioObj.WriteString(":CALC:MATH:DATA:LAT?") ’Latest data ioObj.WriteString(":CALC:MATH:DATA?") ’All data Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 35
Controlling the Keysight B2961B/B2962B Using the Math Function To specify the data to obtain, use the :FORM:ELEM:CALC command. Keysight B2961B/B2962B Programming Guide, Edition 1...
TIME SENS [1| 2]:DATA ? STAT SOUR MATH CALC CALC[1|2]:MATH :DATA ? TIME STAT Trace Feeding VOLT MEAN CURR SDEV CALC TIME PKPK STAT SOUR TRACe [1| 2]:DATA ? TRACe [1| 2]:STAT :DATA ? Keysight B2961B/B2962B Programming Guide, Edition 1...
The :TRAC:STAT:FORM command selects one from the following statistical data. MEAN: Mean value • SDEV: Standard deviation • PKPK: Peak to peak value • MIN: Minimum value • MAX: Maximum value • Example ioObj.WriteString(":TRAC:DATA?") ’Reads all data ioObj.WriteString(":TRAC:STAT:FORM MEAN") ioObj.WriteString(":TRAC:STAT:DATA?") ’Reads statistical data Keysight B2961B/B2962B Programming Guide, Edition 1...
RUN to change the status to running, PAUS to change it to paused, CONT to change it from paused to running, STOP to change it to stopped, or STEP to perform step execution. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 39
Controlling the Keysight B2961B/B2962B Using Program Memory Example ioObj.WriteString(":PROG:NAME ""sample""") ioObj.WriteString(":PROG:EXEC") ioObj.WriteString("*OPC?") : s = ioObj.ReadString() ioObj.WriteString(":PROG:NAME ""sample""") ioObj.WriteString(":PROG:STAT RUN") ioObj.WriteString("*OPC?") : s = ioObj.ReadString() ioObj.WriteString(":PROG:STAT STOP") Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 40
Controlling the Keysight B2961B/B2962B Using Program Memory Keysight B2961B/B2962B Programming Guide, Edition 1...
Keysight B2961B/B2962B Low Noise Power Source Programming Guide Programming Examples Preparations DC Output Pulse Output Exponential Wave Output Ramp Wave Output Sinusoidal Wave Output Square Wave Output Trapezoidal Wave Output Triangle Wave Output User Defined Waveform Output Staircase Sweep Output...
Page 42
Visual Basic .NET language. The examples are provided as a subprogram that can be run with the project template shown in Table 2-2. To run the program, insert the example subprogram or your subprogram instead of the B2960control subprogram in the template. Keysight B2961B/B2962B Programming Guide, Edition 1...
It will remove the conventional task in the future programming. This section explains how to create a project template. Step 1. Connect Keysight B2961B/B2962B (e.g. GPIB address 23) to the computer via GPIB. Step 2. Launch Visual Basic .NET and create a new project. The project type should be Console Application to simplify the programming.
Step 6. Open the module that contains the template code as shown in Table 2-2. On the code window, complete the B2960control subprogram. Step 7. Optionally, insert the code to display, store, or calculate data into the subprogram. Step 8. Save the project (e.g. \B2960\source\wave1). Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 45
Beginning of the Main subprogram. And defines the variables used in this program. 9 to 20 Establishes the connection with the instrument specified by the GPIB address ifAddress = 23 on the interface GPIB0. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 46
Saves the data to a file specified by filename. 29 to 35 Breaks the connection with the instrument specified by ifAddress = 23. 37 to 39 B2960control subprogram. Instrument control program code should be entered here. Keysight B2961B/B2962B Programming Guide, Edition 1...
(@1) for selecting the channel 1 only, (@2) for selecting the channel 2 only, or (@1,2), (@1:2), (@2,1), or (@2:1) for selecting both channels 1 and 2. Abbreviating this parameter sets chanlist = (@1) for the 1-channel models, and chanlist = (@1,2) for the 2-channel models. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 48
Sets the current measurement function. And sets the aperture time to 0.1 PLC and the current limit (compliance) value to 0.1 A. Enables the channel. And starts DC output. 22 to 24 Performs measurement and reads the measurement result data. Measurement Result: +9.000000E-05 Result Example Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 50
(@1) for selecting the channel 1 only, (@2) for selecting the channel 2 only, or (@1,2), (@1:2), (@2,1), or (@2:1) for selecting both channels 1 and 2. Abbreviating this parameter sets chanlist = (@1) for the 1-channel models, and chanlist = (@1,2) for the 2-channel models. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 51
Sets the current measurement function. And sets the aperture time to 0.1 ms and the current limit (compliance) value to 0.1 A. 24 to 25 Sets the transient (source) delay time and the acquire (measurement) delay time. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 52
28 to 30 Sets the timer trigger source. And sets the trigger interval to 4 ms, and the trigger count to 3. The B2961B/B2962B will perform the pulsed spot measurement three times. Enables the channel. And starts source output. Starts pulse output and pulsed spot measurement.
:TRIG[c]<:ACQ | :TRAN | [:ALL]>:SOUR source Sets interval of timer trigger :TRIG[c]<:ACQ | :TRAN | [:ALL]>:TIM time Sets trigger count :TRIG[c]<:ACQ | :TRAN | [:ALL]>:COUN value Sets trigger delay time :TRIG[c]<:ACQ | :TRAN | [:ALL]>:DEL time Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 54
(@1) for selecting the channel 1 only, (@2) for selecting the channel 2 only, or (@1,2), (@1:2), (@2,1), or (@2:1) for selecting both channels 1 and 2. Abbreviating this parameter sets chanlist = (@1) for the 1-channel models, and chanlist = (@1,2) for the 2-channel models. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 55
(compliance) value to 0.1 A. 22 to 23 Sets the transient trigger. Source output will be triggered once. 24 to 26 Sets the acquire trigger. Output monitor will be triggered 100 times in 10 ms interval. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 56
Starts the exponential wave output and monitor. 38 to 40 Reads the measurement result data. Measurement Result: Result Example +0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.00 0000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E +00,+0.000000E+00,+1.800000E-02,+2.610000E-01,+4.920000E-01,+7.120000E-01,+ 9.210000E-01,+1.120000E+00,+1.309000E+00,+1.489000E+00,+1.660000E+00,+1.823 000E+00,+1.978000E+00,+2.125000E+00,+2.266000E+00,+2.399000E+00,+2.526000E+ 00,+2.646000E+00,+2.761000E+00,+2.870000E+00,+2.974000E+00,+3.073000E+00,+3 .167000E+00,+3.256000E+00,+3.341000E+00,+3.422000E+00,+3.499000E+00,+3.5720 00E+00,+3.642000E+00,+3.708000E+00,+3.771000E+00,+3.831000E+00,+3.888000E+0 0,+3.942000E+00,+3.994000E+00,+4.043000E+00,+4.090000E+00,+4.134000E+00,+4. 176000E+00,+4.217000E+00,+4.255000E+00,+4.291000E+00,+4.326000E+00,+4.35900 0E+00,+4.390000E+00,+4.420000E+00,+4.448000E+00,+4.475000E+00,+4.500000E+00 ,+4.525000E+00,+4.548000E+00,+4.570000E+00,+4.591000E+00,+4.611000E+00,+4.6 30000E+00,+4.648000E+00,+4.665000E+00,+4.681000E+00,+4.697000E+00,+4.712000 E+00,+4.726000E+00,+4.739000E+00,+4.752000E+00,+4.764000E+00,+4.776000E+00, +4.786000E+00,+4.797000E+00,+4.807000E+00,+4.816000E+00,+4.825000E+00,+4.83 4000E+00,+4.842000E+00,+4.850000E+00,+4.857000E+00,+4.864000E+00,+4.870000E +00,+4.877000E+00,+4.883000E+00,+4.889000E+00,+4.894000E+00,+4.899000E+00,+ 4.904000E+00,+4.909000E+00,+4.913000E+00,+4.917000E+00,+4.921000E+00,+4.925 000E+00,+4.929000E+00,+4.932000E+00,+4.936000E+00 Keysight B2961B/B2962B Programming Guide, Edition 1...
:TRIG[c]<:ACQ | :TRAN | [:ALL]>:SOUR source Sets interval of timer trigger :TRIG[c]<:ACQ | :TRAN | [:ALL]>:TIM time Sets trigger count :TRIG[c]<:ACQ | :TRAN | [:ALL]>:COUN value Sets trigger delay time :TRIG[c]<:ACQ | :TRAN | [:ALL]>:DEL time Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 58
(@1) for selecting the channel 1 only, (@2) for selecting the channel 2 only, or (@1,2), (@1:2), (@2,1), or (@2:1) for selecting both channels 1 and 2. Abbreviating this parameter sets chanlist = (@1) for the 1-channel models, and chanlist = (@1,2) for the 2-channel models. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 59
(compliance) value to 0.1 A. 22 to 23 Sets the transient trigger. Source output will be triggered once. 24 to 26 Sets the acquire trigger. Output monitor will be triggered 100 times in 10 ms interval. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 60
Starts the ramp wave output and monitor. 38 to 40 Reads the measurement result data. Measurement Result: Result Example +0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.00 0000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E +00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+ 0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000 000E+00,+0.000000E+00,+8.100000E-02,+2.060000E-01,+3.310000E-01,+4.560000E- 01,+5.810000E-01,+7.060000E-01,+8.310000E-01,+9.560000E-01,+1.081000E+00,+1 .206000E+00,+1.331000E+00,+1.456000E+00,+1.581000E+00,+1.706000E+00,+1.8310 00E+00,+1.956000E+00,+2.081000E+00,+2.206000E+00,+2.331000E+00,+2.456000E+0 0,+2.580000E+00,+2.705000E+00,+2.830000E+00,+2.955000E+00,+3.080000E+00,+3. 205000E+00,+3.330000E+00,+3.455000E+00,+3.580000E+00,+3.705000E+00,+3.83000 0E+00,+3.955000E+00,+4.080000E+00,+4.205000E+00,+4.330000E+00,+4.455000E+00 ,+4.580000E+00,+4.705000E+00,+4.830000E+00,+4.955000E+00,+5.000000E+00,+5.0 00000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000000 E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00, +5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.00 0000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E +00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+ 5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000 000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00 Keysight B2961B/B2962B Programming Guide, Edition 1...
:TRIG[c]<:ACQ | :TRAN | [:ALL]>:COUN value Sets trigger delay time :TRIG[c]<:ACQ | :TRAN | [:ALL]>:DEL time Enables/disables channel :OUTP[c] <ON | OFF> Initiates specified action :INIT<:ACQ | :TRAN | [:ALL]> [chanlist] Reads result data (array data) :FETC:ARR:type? [chanlist] Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 62
(@1) for selecting the channel 1 only, (@2) for selecting the channel 2 only, or (@1,2), (@1:2), (@2,1), or (@2:1) for selecting both channels 1 and 2. Abbreviating this parameter sets chanlist = (@1) for the 1-channel models, and chanlist = (@1,2) for the 2-channel models. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 63
(compliance) value to 0.1 A. 19 to 20 Sets the transient trigger. Source output will be triggered once. 21 to 23 Sets the acquire trigger. Output monitor will be triggered 100 times in 10 ms interval. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 64
Starts the sinusoidal wave output and monitor. 35 to 37 Reads the measurement result data. Measurement Result: Result Example +0.000000E+00,+0.000000E+00,+0.000000E+00,+3.450000E-02,+9.720000E-02,+1.59 5000E-01,+2.212000E-01,+2.820000E-01,+3.417000E-01,+4.000000E-01,+4.568000E -01,+5.117000E-01,+5.647000E-01,+6.154000E-01,+6.637000E-01,+7.093000E-01,+ 7.522000E-01,+7.921000E-01,+8.288000E-01,+8.623000E-01,+8.924000E-01,+9.190 000E-01,+9.419000E-01,+9.612000E-01,+9.766000E-01,+9.882000E-01,+9.958000E- 01,+9.996000E-01,+9.994000E-01,+9.953000E-01,+9.872000E-01,+9.752000E-01,+9 .594000E-01,+9.398000E-01,+9.165000E-01,+8.896000E-01,+8.591000E-01,+8.2530 00E-01,+7.882000E-01,+7.480000E-01,+7.049000E-01,+6.590000E-01,+6.104000E-0 1,+5.595000E-01,+5.064000E-01,+4.512000E-01,+3.943000E-01,+3.358000E-01,+2. 760000E-01,+2.151000E-01,+1.534000E-01,+9.100000E-02,+2.830000E-02,-3.45000 0E-02,-9.720000E-02,-1.595000E-01,-2.212000E-01,-2.820000E-01,-3.417000E-01 ,-4.000000E-01,-4.567000E-01,-5.117000E-01,-5.646000E-01,-6.153000E-01,-6.6 36000E-01,-7.093000E-01,-7.521000E-01,-7.920000E-01,-8.288000E-01,-8.623000 E-01,-8.924000E-01,-9.190000E-01,-9.419000E-01,-9.611000E-01,-9.766000E-01, -9.882000E-01,-9.958000E-01,-9.996000E-01,-9.994000E-01,-9.953000E-01,-9.87 2000E-01,-9.752000E-01,-9.594000E-01,-9.398000E-01,-9.165000E-01,-8.896000E -01,-8.592000E-01,-8.253000E-01,-7.883000E-01,-7.481000E-01,-7.049000E-01,- 6.590000E-01,-6.105000E-01,-5.595000E-01,-5.064000E-01,-4.512000E-01,-3.943 000E-01,-3.358000E-01,-2.760000E-01,-2.151000E-01 Keysight B2961B/B2962B Programming Guide, Edition 1...
:TRIG[c]<:ACQ | :TRAN | [:ALL]>:SOUR source Sets interval of timer trigger :TRIG[c]<:ACQ | :TRAN | [:ALL]>:TIM time Sets trigger count :TRIG[c]<:ACQ | :TRAN | [:ALL]>:COUN value Sets trigger delay time :TRIG[c]<:ACQ | :TRAN | [:ALL]>:DEL time Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 66
(@1) for selecting the channel 1 only, (@2) for selecting the channel 2 only, or (@1,2), (@1:2), (@2,1), or (@2:1) for selecting both channels 1 and 2. Abbreviating this parameter sets chanlist = (@1) for the 1-channel models, and chanlist = (@1,2) for the 2-channel models. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 67
(compliance) value to 0.1 A. 22 to 23 Sets the transient trigger. Source output will be triggered once. 24 to 26 Sets the acquire trigger. Output monitor will be triggered 100 times in 10 ms interval. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 68
Starts the square wave output and monitor. 38 to 40 Reads the measurement result data. Measurement Result: Result Example +0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.00 0000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E +00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+ 0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000 000E+00,+4.154000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+ 00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5 .000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.0000 00E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+8.440000E-0 1,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0. 000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.00000 0E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00 ,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.0 00000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000 E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00, +0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.00 0000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E +00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+ 0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000 000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00 Keysight B2961B/B2962B Programming Guide, Edition 1...
Sets limit (compliance) value :SENS[c]:v-or-c:PROT value Selects trigger source :TRIG[c]<:ACQ | :TRAN | [:ALL]>:SOUR source Sets interval of timer trigger :TRIG[c]<:ACQ | :TRAN | [:ALL]>:TIM time Sets trigger count :TRIG[c]<:ACQ | :TRAN | [:ALL]>:COUN value Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 70
(@1) for selecting the channel 1 only, (@2) for selecting the channel 2 only, or (@1,2), (@1:2), (@2,1), or (@2:1) for selecting both channels 1 and 2. Abbreviating this parameter sets chanlist = (@1) for the 1-channel models, and chanlist = (@1,2) for the 2-channel models. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 71
(compliance) value to 0.1 A. 24 to 25 Sets the transient trigger. Source output will be triggered once. 26 to 28 Sets the acquire trigger. Output monitor will be triggered 100 times in 10 ms interval. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 72
Starts the trapezoidal wave output and monitor. 40 to 42 Reads the measurement result data. Measurement Result: Result Example +0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.00 0000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E +00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+ 0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000 000E+00,+0.000000E+00,+1.730000E-01,+4.230000E-01,+6.730000E-01,+9.230000E- 01,+1.173000E+00,+1.423000E+00,+1.673000E+00,+1.923000E+00,+2.173000E+00,+2 .423000E+00,+2.673000E+00,+2.923000E+00,+3.173000E+00,+3.423000E+00,+3.6730 00E+00,+3.923000E+00,+4.173000E+00,+4.423000E+00,+4.672000E+00,+4.922000E+0 0,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5. 000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.00000 0E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00 ,+5.000000E+00,+5.000000E+00,+5.000000E+00,+5.000000E+00,+4.828000E+00,+4.5 78000E+00,+4.328000E+00,+4.078000E+00,+3.828000E+00,+3.578000E+00,+3.328000 E+00,+3.078000E+00,+2.828000E+00,+2.578000E+00,+2.328000E+00,+2.078000E+00, +1.828000E+00,+1.578000E+00,+1.328000E+00,+1.078000E+00,+8.280000E-01,+5.78 0000E-01,+3.290000E-01,+7.900000E-02,+0.000000E+00,+0.000000E+00,+0.000000E +00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+ 0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000 000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00 Keysight B2961B/B2962B Programming Guide, Edition 1...
:TRIG[c]<:ACQ | :TRAN | [:ALL]>:SOUR source Sets interval of timer trigger :TRIG[c]<:ACQ | :TRAN | [:ALL]>:TIM time Sets trigger count :TRIG[c]<:ACQ | :TRAN | [:ALL]>:COUN value Sets trigger delay time :TRIG[c]<:ACQ | :TRAN | [:ALL]>:DEL time Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 74
(@1) for selecting the channel 1 only, (@2) for selecting the channel 2 only, or (@1,2), (@1:2), (@2,1), or (@2:1) for selecting both channels 1 and 2. Abbreviating this parameter sets chanlist = (@1) for the 1-channel models, and chanlist = (@1,2) for the 2-channel models. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 75
(compliance) value to 0.1 A. 23 to 24 Sets the transient trigger. Source output will be triggered once. 25 to 27 Sets the acquire trigger. Output monitor will be triggered 100 times in 10 ms interval. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 76
Starts the triangle wave output and monitor. 39 to 41 Reads the measurement result data. Measurement Result: Result Example +0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.00 0000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E +00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+ 0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000 000E+00,+0.000000E+00,+2.280000E-01,+4.780000E-01,+7.280000E-01,+9.780000E- 01,+1.228000E+00,+1.478000E+00,+1.728000E+00,+1.977000E+00,+2.227000E+00,+2 .477000E+00,+2.727000E+00,+2.977000E+00,+3.227000E+00,+3.477000E+00,+3.7270 00E+00,+3.977000E+00,+4.227000E+00,+4.477000E+00,+4.727000E+00,+4.977000E+0 0,+4.773000E+00,+4.523000E+00,+4.273000E+00,+4.023000E+00,+3.773000E+00,+3. 523000E+00,+3.273000E+00,+3.024000E+00,+2.774000E+00,+2.524000E+00,+2.27400 0E+00,+2.024000E+00,+1.774000E+00,+1.524000E+00,+1.274000E+00,+1.024000E+00 ,+7.740000E-01,+5.240000E-01,+2.740000E-01,+2.400000E-02,+0.000000E+00,+0.0 00000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000 E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00, +0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.00 0000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E +00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+ 0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000 000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00 Keysight B2961B/B2962B Programming Guide, Edition 1...
:TRIG[c]<:ACQ | :TRAN | [:ALL]>:SOUR source Sets interval of timer trigger :TRIG[c]<:ACQ | :TRAN | [:ALL]>:TIM time Sets trigger count :TRIG[c]<:ACQ | :TRAN | [:ALL]>:COUN value Sets trigger delay time :TRIG[c]<:ACQ | :TRAN | [:ALL]>:DEL time Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 78
(@1) for selecting the channel 1 only, (@2) for selecting the channel 2 only, or (@1,2), (@1:2), (@2,1), or (@2:1) for selecting both channels 1 and 2. Abbreviating this parameter sets chanlist = (@1) for the 1-channel models, and chanlist = (@1,2) for the 2-channel models. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 79
(compliance) value to 0.1 A. 19 to 20 Sets the transient trigger. Source output will be triggered once. 21 to 23 Sets the acquire trigger. Output monitor will be triggered 100 times in 10 ms interval. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 80
Starts the user defined waveform output and monitor. 35 to 37 Reads the measurement result data. Measurement Result: Result Example +0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.00 0000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E +00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+ 0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000 000E+00,+6.780000E-02,+1.000000E+00,+1.000000E+00,+1.000000E+00,+1.000000E+ 00,+1.000000E+00,+1.000000E+00,+1.000000E+00,+1.000000E+00,+1.000000E+00,+1 .000000E+00,+1.000000E+00,+1.000000E+00,+1.000000E+00,+1.000000E+00,+1.0000 00E+00,+1.000000E+00,+1.000000E+00,+1.000000E+00,+1.000000E+00,+9.331000E-0 1,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0. 000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.00000 0E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00 ,+0.000000E+00,+0.000000E+00,+0.000000E+00,-6.580000E-02,-1.000000E+00,-1.0 00000E+00,-1.000000E+00,-1.000000E+00,-1.000000E+00,-1.000000E+00,-1.000000 E+00,-1.000000E+00,-1.000000E+00,-1.000000E+00,-1.000000E+00,-1.000000E+00, -1.000000E+00,-1.000000E+00,-1.000000E+00,-1.000000E+00,-1.000000E+00,-1.00 0000E+00,-1.000000E+00,-9.353000E-01,+0.000000E+00,+0.000000E+00,+0.000000E +00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+ 0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00,+0.000 000E+00,+0.000000E+00,+0.000000E+00,+0.000000E+00 Keysight B2961B/B2962B Programming Guide, Edition 1...
Sets measurement function :SENS[c]:FUNC “func”[, “func”[, “func”]] Sets aperture time in seconds or by using :SENS[c]:func2:APER time NPLC value :SENS[c]:func2:NPLC value Sets limit (compliance) value :SENS[c]:v-or-c:PROT value Selects trigger source :TRIG[c]<:ACQ | :TRAN | [:ALL]>:SOUR source Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 82
(@1,2), (@1:2), (@2,1), or (@2:1) for selecting both channels 1 and 2. Abbreviating this parameter sets chanlist = (@1) for the 1-channel models, and chanlist = (@1,2) for the 2-channel models. Measurement Result: +0.000000E+00,+2.000000E-05,+4.000000E-05,+6.000000E-05,+9.000000E- Result Example Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 83
(5 points). 14 to 16 Sets the current measurement function. And sets the aperture time to 0.1 PLC and the current limit (compliance) value to 0.1 A. Auto range is ON with the default setting. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 84
Sets the trigger source to AINT (automatic trigger). And sets the trigger count to 5 to perform a 5-step staircase sweep measurement. Enables the channel. And starts source output (0 V with the default setting). Starts staircase sweep measurement. 32 to 34 Reads the measurement result data. Keysight B2961B/B2962B Programming Guide, Edition 1...
[:SOUR[c]]:SWE:RANG <BEST | FIX | AUTO> Selects sweep direction [:SOUR[c]]:SWE:DIR <UP | DOWN> Selects sweep linear or log [:SOUR[c]]:SWE:SPAC <LIN | LOG> Selects sweep single or double [:SOUR[c]]:SWE:STA <SING | DOUB> Sets measurement function :SENS[c]:FUNC “func”[, “func”[, “func”]] Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 86
(@1) for selecting the channel 1 only, (@2) for selecting the channel 2 only, or (@1,2), (@1:2), (@2,1), or (@2:1) for selecting both channels 1 and 2. Abbreviating this parameter sets chanlist = (@1) for the 1-channel models, and chanlist = (@1,2) for the 2-channel models. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 87
Sets the current measurement function and the 100 mA fixed range measurement. And sets the aperture time to 0.1 ms and the current limit (compliance) value to 0.1 A. 24 to 25 Sets the transient (source) delay time and the acquire (measurement) delay time. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 88
5-step pulsed sweep measurement. Enables the channel. And starts source output (0 V with the default setting). Starts pulsed sweep measurement. 42 to 44 Reads the measurement result data. Measurement Result: +0.000000E+00,+2.000000E-05,+4.000000E-05,+6.000000E-05,+9.000000E- Result Example Keysight B2961B/B2962B Programming Guide, Edition 1...
:TRIG[c]<:ACQ | :TRAN | [:ALL]>:SOUR source Sets interval of timer trigger :TRIG[c]<:ACQ | :TRAN | [:ALL]>:TIM time Sets trigger count :TRIG[c]<:ACQ | :TRAN | [:ALL]>:COUN value Sets trigger delay time :TRIG[c]<:ACQ | :TRAN | [:ALL]>:DEL time Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 90
(@1) for selecting the channel 1 only, (@2) for selecting the channel 2 only, or (@1,2), (@1:2), (@2,1), or (@2:1) for selecting both channels 1 and 2. Abbreviating this parameter sets chanlist = (@1) for the 1-channel models, and chanlist = (@1,2) for the 2-channel models. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 91
(compliance) value to 0.1 A. Auto range is ON with the default setting. 17 to 18 Sets the trigger source to AINT (automatic trigger). And sets the trigger count to 3 to perform a 3-point list sweep measurement. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 92
End Sub Line Description Enables the channel. And starts source output (0 V with the default setting). Starts list sweep measurement. 30 to 32 Reads the measurement result data. Measurement Result: +2.000000E-05,+5.000000E-05,+9.000000E-05 Result Example Keysight B2961B/B2962B Programming Guide, Edition 1...
Sets measurement function :SENS[c]:FUNC “func”[, “func”[, “func”]] Sets aperture time in seconds or by :SENS[c]:func2:APER time using NPLC value :SENS[c]:func2:NPLC value Sets limit (compliance) value :SENS[c]:v-or-c:PROT value Selects trigger source :TRIG[c]<:ACQ | :TRAN | [:ALL]>:SOUR source Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 94
(@1) for selecting the channel 1 only, (@2) for selecting the channel 2 only, or (@1,2), (@1:2), (@2,1), or (@2:1) for selecting both channels 1 and 2. Abbreviating this parameter sets chanlist = (@1) for the 1-channel models, and chanlist = (@1,2) for the 2-channel models. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 95
Sets the current measurement function and the 100 mA fixed range measurement. And sets the aperture time to 0.1 ms and the current limit (compliance) value to 0.1 A. 22 to 23 Sets the transient (source) delay time and the acquire (measurement) delay time. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 96
3-point pulsed list sweep measurement. Enables the channel. And starts source output (0 V with the default setting). Starts pulsed list sweep measurement. 40 to 42 Reads the measurement result data. Measurement Result: +2.000000E-05,+5.000000E-05,+9.000000E-05 Result Example Keysight B2961B/B2962B Programming Guide, Edition 1...
RUN to change to the running status, PAUS to change to the paused status, CONT to change to the running status, STOP to change to the stopped status, or STEP to perform step execution. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 98
0 A to 40 mA, 21 points, with the aperture time 0.1 PLC. Gets the program length (number of characters in the “program” variable). 23 to 24 Stores the program code to the program memory as the program name “sample”. Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 99
34 to 37 Waits for operation complete. And write “*OPC?: 1” on the console window when the operation is completed. 39 to 41 Reads the measurement result data. Measurement Result: +5.200000E-03,+6.643000E-01,+1.931000E+00,+2.000000E+00,+2.000000E+ Result Example 00,+2.000000E+00,+2.000000E+00,+2.000000E+00,+2.000000E+00,+2.000000E+00,+2 .000000E+00,+2.000000E+00,+2.000000E+00,+2.000000E+00,+2.000000E+00,+2.0000 00E+00,+2.000000E+00,+2.000000E+00,+2.000000E+00,+2.000000E+00,+2.000000E+0 Keysight B2961B/B2962B Programming Guide, Edition 1...
NORM for the normal byte order from byte 1 to byte 4 or 8, or SWAP for the reverse byte order from byte 4 or 8 to byte 1. Measurement Result: V (V), I (A), Time (sec), Status: 0,0,0.022718,41600.025,2E-05,0.02 Result Example 5817,41600.05,4E-05,0.02878,41600.075,6E-05,0.031722,41600.1,9E-05,0.034668 ,4160 Keysight B2961B/B2962B Programming Guide, Edition 1...
Page 101
Specifies the data to return. This example selects voltage measurement data, current measurement data, time data, and status data. 4 to 23 Reads the measurement result data in the ASCII format. 27 to 40 Reads the measurement result data in the REAL,64 format. Keysight B2961B/B2962B Programming Guide, Edition 1...