EasyManuals Logo

ADVANTEST R3132 Series User Manual

ADVANTEST R3132 Series
588 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 #296 background imageLoading...
Page #296 background image
R3132 Series Spectrum Analyzer Operation Manual
4.2.10 Example Programs
4-52
Example VB-8: Output the marker level
Dim sep As Integer
Call ibclr(spa) Perform a device clear.
Call ibwrt(spa, "CF 30MZ") Set the parameter.
Call ibwrt(spa, "SP 1MZ")
Call ibwrt(spa, "MK 30MZ") The marker frequency is set to 30 MHz.
Call ibwrt(spa, "TS")
Call ibwrt(spa, "ML?") Query command for the marker level.
Rdbuff = Space(30) Allocate a total of 30 bytes to the buffer area.
Call ibrd(spa, Rdbuff) Read the data (30 bytes Max.).
sep = InStr(1, Rdbuff, vbCrLf, 0) Check the number of character to the delimiter.
RichTextBox1.Text = "MarkerLevel = " & Left(Rdbuff, sep - 1)
Outputs the data on the screen.
An example display:
MarkerLevel = -8.818750000000E+01
Example VB-9: Reading the center frequency and displaying it
Dim sep As Integer
Call ibclr(spa) Performs a Device Clear.
Call ibwrt(spa, "CF?") Query command for the center frequency.
Rdbuff = Space(30) Allocate the buffer memory space to 30 bytes.
Call ibrd(spa, Rdbuff) Read the data (30 bytes Max.)
sep = InStr(1, Rdbuff, vbCrLf, 0) Check the number of characters prior to the delimiter.
RichTextBox1.Text = "CenterFreq = " & Left(Rdbuff, sep - 1)
Display the data on the screen.
An example display:
CenterFreq = +3.000000000000E+07

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ADVANTEST R3132 Series and is the answer not in the manual?

ADVANTEST R3132 Series Specifications

General IconGeneral
BrandADVANTEST
ModelR3132 Series
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals