2- 16
Keysight B2980 Programming Guide, Edition 1
Programming Examples
List Sweep Measurements
Table 2-4
List Sweep Measurement Example
Sub B2900control(ByVal ioObj As Ivi.Visa.Interop.FormattedIO488, ByRef s As String,
ByRef filename As String)
filename = "../../../execution result/ListSweep1.txt" ’2
ioObj.WriteString("*RST") ’ Reset ’4
Try ’ Set voltage output to 0.03, 0.06, and 0.1 V
ioObj.WriteString(":sour:func:mode volt") ’7
ioObj.WriteString(":sour:volt:mode list")
ioObj.WriteString(":sour:list:volt 0.03,0.06,0.1")
’ Set 2nA limited auto ranging
ioObj.WriteString(":sens:func ""curr""") ’12
ioObj.WriteString(":sens:curr:rang:auto:llim 2e-9")
’ Set measurement speed to 0.1 PLC
ioObj.WriteString(":sens:curr:nplc:auto off") ’16
ioObj.WriteString(":sens:curr:nplc 0.1")
’ Generate 3 triggers by automatic internal algorithm
ioObj.WriteString(":trig:sour aint") ’20
ioObj.WriteString(":trig:coun 3")
Catch ex As Exception
Console.WriteLine("An error occurred: " + ex.Message)
End Try
’ Turn on output switch
ioObj.WriteString(":outp on") ’28
’ Turn on input switch
ioObj.WriteString(":inp on") ’31
’ Initiate transition and acquire
ioObj.WriteString(":init") ’34
Try ’ Retrieve measurement result
ioObj.WriteString(":fetc:arr:curr?") ’37
s = ioObj.ReadString()
Catch ex As Exception
Console.WriteLine("An error occurred: " + ex.Message)
End Try
End Sub
Line
Description
2
Defines the file name used for saving the result data.
4
Resets the B2980.
7 to 9
Sets the voltage list sweep output function. And sets the list sweep output 0.03 V,
0.06 V, and 0.1 V (3 points).