EasyManuals Logo
Home>R&S>Receiver>ESR Series

R&S ESR Series User Manual

R&S ESR Series
1126 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #1027 background imageLoading...
Page #1027 background image
Remote Control
R&S
®
ESR
1024User Manual 1175.7068.02 ─ 12
END SUB
REM ************************************************************************
11.17.11.2 Creating a File on the Instrument
In the following example, the TEST1.R&S FSV.DFL file available on the controller is
stored in the instrument under C:\R_S\Instr\user\DUPLICAT.R&S FSV.DFL.
REM ************************************************************************
Public Sub WriteFile()
'--------- Generate variables ----------------------------------------------
FileBuffer$ = Space$(100000) 'Buffer for file
Dim digits As Long 'Number of digits of
'length information
Dim fileBytes As Long 'Length of file in bytes
fileSize$ = Space$(100) 'Length of file as a string
result$ = Space$(100) 'Buffer for simple results
'--------- Default setting of status register ------------------------------
CALL SetupStatusReg 'Configure status register
'--------- Prepare the definite length block data --------------------------
fileBytes = FileLen("H:\work\vb\TEST1.R&S FSV.DFL")
'Determine length of file
fileSize$ = Str$(fileBytes)
digits = Len(fileSize$) – 1 'Determine number of digits of
fileSize$ = Right$(fileSize$, digits) 'length information
FileBuffer$ = "#" + Right$(Str$(digits), 1) + fileSize$
'Store length information in
'file buffer
'--------- Read file from controller ---------------------------------------
Open "H:\work\vb\TEST1.R&S FSV.DFL" For Binary As #1
FileBuffer$ = FileBuffer$ + Left$(Input(fileBytes, #1), fileBytes)
Close #1
'--------- Write file ------------------------------------------------------
CALL InstrWrite (analyzer, "SYST:COMM:GPIB:RTER EOI") 'Set receive
'terminator on the
'instrument
CALL InstrWrite (analyzer, "MMEM:DATA
'DUPLICAT.R&S FSV.DFL', " + FileBuffer$)
'Select file
END SUB
REM ************************************************************************
11.17.12 Spectrum Emission Mask Measurement
You can configure Spectrum Emission Mask measurements via XML files provided for
different standards or by defining ranges and parameters. For both ways an example is
given.
Remote Control – Programming Examples

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the R&S ESR Series and is the answer not in the manual?

R&S ESR Series Specifications

General IconGeneral
BrandR&S
ModelESR Series
CategoryReceiver
LanguageEnglish

Related product manuals