![R&S RTA4000 Скачать руководство пользователя страница 426](http://html2.mh-extra.com/html/rands/rta4000/rta4000_user-manual_3161987426.webp)
Remote control commands
R&S
®
RTA4000
426
User Manual 1335.7898.02 ─ 08
<-- 1
MMEM:CDIR "/INT/SETTINGS"
MMEM:LOAD:STAT 1,"ZOOM_USB.SET" // Load settings
17.2.1.3
Reading waveform data in real format
Set data format and sample range, read channel header and data.
Command description in
Chapter 17.9.1, "Transfer of waveform data"
Return values are example data.
// Check instrument connection (example)
* Connected to: TCPIP0::192.168.1.1::inst0::INSTR
SYST:ERR:ALL?
<-- 0,"No error" // if error queue is empty
*IDN?
<-- Rohde&Schwarz,RTA4004,1335.7700K04/101489,01.502
// Read waveform data
*RST
CHAN:TYPE HRES // Set high resolution mode (16 bit data)
TIM:SCAL 1E-7 // Set time base
FORM REAL // Set REAL data format
FORM:BORD LSBF // Set little endian byte order
CHAN:DATA:POIN DMAX // Set sample range to memory data in displayed time range
SING;*OPC? // Start single acquisition
<-- 1
CHAN:DATA:HEAD? // Read header
<-- -4.9980E-07,5.0000E-07,5000,1 // Xstart, Xstop, record length in samples
CHAN:DATA? // Read channel data
<-- #520000>??[>??[>??[>??[>??[>??... // Binary block data,
// 4-byte floating point number/sample
17.2.1.4
Reading waveform data in unsigned integer format
Read the channel header, the waveform conversion data, set the UINT binary data for-
mat and read the channel data.
Chapter 17.9.1, "Transfer of waveform data"
Return values are example data.
*RST
TIM:SCAL 1E-7
CHAN:DATA:POIN DMAX // Set data range
SING;*OPC?
<-- 1
CHAN:DATA:HEAD? // Read header
<-- -4.9980E-07,5.0000E-07,5000,1 // Xstart, Xstop, record length in samples
CHAN:DATA:YRES? // Read vertical resolution
<-- 8
CHAN:DATA:YOR? // Read voltage value for binary value 0
Programming examples