Table 2-8
Sub B2960control(ByVal ioObj As Ivi.Visa.Interop.FormattedIO488, ByRef s As String, ByRef
filename As String)
filename = "C:/temp/ExponentialWaveform1.txt"
ioObj.WriteString("*RST") ' Reset
Try ' Set exponential wave voltage output
ioObj.WriteString(":sour:func:mode volt")
ioObj.WriteString(":sour:volt:mode arb")
ioObj.WriteString(":sour:arb:func exp")
ioObj.WriteString(":sour:arb:volt:exp:star 0")
ioObj.WriteString(":sour:arb:volt:exp:end 5")
ioObj.WriteString(":sour:arb:volt:exp:star:time 0.1")
ioObj.WriteString(":sour:arb:volt:exp:tcon 0.2")
ioObj.WriteString(":sour:arb:volt:exp:time 0.9")
' Set voltage measurement
ioObj.WriteString(":sens:func ""volt""")
ioObj.WriteString(":sens:curr:nplc 0.1")
ioObj.WriteString(":sens:curr:prot 0.1")
' Generate triggers
ioObj.WriteString(":trig:tran:coun 1")
ioObj.WriteString(":trig:tran:sour aint")
ioObj.WriteString(":trig:acq:coun 100")
ioObj.WriteString(":trig:acq:sour timer")
ioObj.WriteString(":trig:acq:tim 0.01")
Line
2
Defines the file name used for saving the result data.
4
Resets the B2961B/B2962B.
6 to 14
Sets the exponential wave output voltage from 0 V to 5 V and the time parameters. See
Figure 1-1
16 to 19
Sets the voltage measurement function. And sets the aperture time to 0.1 PLC and the current
limit (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
Exponential Wave Output Example
for the relation between the commands and the waveform.
Description
Programming Examples
Exponential Wave Output
'16
'21
'2
'6
55