1- 16
Keysight E5260/E5270 Programming Guide, Edition 4
Programming Basics
Getting Started
To Read Sweep Measurement Data
For the sweep measurements, the measurement data will be put into the data output
buffer after every step measurement. You can read the data as shown below. The
examples use the VISA COM library and Microsoft Visual Basic .NET language.
For the data output format, see
“Data Output Format” on page 1-22
•
To read data after sweep measurement
This way waits for the measurement completion by using the *OPC? command
after the XE command, and reads the sweep data (all step measurement data) at
once after the sweep measurement is completed. For the specific example, see
.
Example:
E5270.WriteString("FMT 5,0" & vbLf) ’terminator=comma
E5270.WriteString("XE" & vbLf)
E5270.WriteString("*OPC?" & vbLf)
rep = E5270.ReadString(1 + 2) ’RCRLF
ret_val = E5270.ReadString(16 * nop)
For i = 0 To nop - 1 ’nop=number of sweep steps
head = Mid(ret_val, 16 * i + 1, 3)
mdata = Val(Mid(ret_val, 16 * i + 4, 12))
ddata = "Data = " & mdata & ", Header = " & head
Console.WriteLine(ddata)
Next i
•
To read data after every step measurement
This way starts to read the data after the XE command. You do not need to wait
for the sweep measurement completion. So you can check the result data before
the sweep measurement is completed. For the specific example, see
.
Example:
E5270.WriteString("FMT 5,0" & vbLf) ’terminator=comma
E5270.TerminationCharacter = Chr(44) ’Chr(44)=comma
E5270.TerminationCharacterEnabled = True ’enables comma
E5270.WriteString("XE" & vbLf)
For i = 0 To nop - 1 ’nop=number of sweep steps
ret_val = E5270.ReadString(3 + 12 + 1)
head = Left(ret_val, 3)
mdata = Val(Mid(ret_val, 4, 12))
ddata = "Data = " & mdata & ", Header = " & head
Console.WriteLine(ddata)
Next i
Summary of Contents for E5260 Series
Page 1: ...Keysight Technologies E5260 E5270 Series of Parametric Measurement Solutions Programming Guide...
Page 3: ...User s Guide B2900 9001x xxxx 201x Edition x...
Page 13: ...1 Programming Basics...
Page 63: ...2 Remote Mode Functions...
Page 108: ...2 46 Keysight E5260 E5270 Programming Guide Edition 4 Remote Mode Functions Initial Settings...
Page 109: ...3 Programming Examples...
Page 185: ...4 Command Reference...
Page 335: ...5 Error Messages...
Page 349: ......