Herunterladen Inhalt Inhalt Diese Seite drucken

Markerpositionierung Und Auslesen; Befehlssynchronisierung - R&S FSVR Handbuch

Inhaltsverzeichnis

Werbung

®
R&S
FSVR
7.1.6

Markerpositionierung und Auslesen

REM -------- Example of marker function -----------------------------------
PUBLIC SUB ReadMarker()
Dim retCount as Long
CALL InstrWrite(analyzer, "CALC:MARKER ON;MARKER:MAX")
'Activate marker 1 and search for peak
MKmark$ = SPACE$(30)
CALL InstrWrite(analyzer, "CALC:MARK:X?;Y?")
'Query frequency and level
CALL InstrRead(analyzer, MKmark$, 30, retCount)
'Read value
REM --------- Displaying values in the Immediate window -------------------
Debug.Print "Marker frequency/level "; MKmark$,
END SUB
REM ************************************************************************
7.1.7

Befehlssynchronisierung

Die im folgenden Beispiel realisierten Möglichkeiten zur Synchronisierung sind im
Betriebshandbuch auf der CD, Kapitel „Fernsteuerung – erste Schritte", Abschnitt
„Befehlsreihenfolge und Befehlssynchronisation" beschrieben.
REM --------- Commands for command synchronization ------------------------
PUBLIC SUB SweepSync()
Dim retCount as Long
Dim SRQWaitTimeout As Long
Dim eventType As Long
Dim eventVi As Long
REM The command INITiate[:IMMediate] starts a single sweep if the
REM command INIT:CONT OFF has already been sent. The next command
REM must not be carried out until a full sweep has been completed.
CALL InstrWrite(analyzer, "INIT:CONT OFF")
REM --------- First method: Using *WAI ------------------------------------
CALL InstrWrite(analyzer, "ABOR;INIT:IMM; *WAI")
REM --------- Second method: Using *OPC? ----------------------------------
OpcOk$ = SPACE$(2)
CALL InstrWrite(analyzer, "ABOR;INIT:IMM; *OPC?")
REM --------- In this case, the controller can use other instruments ------
CALL InstrRead(analyzer, OpcOk$, 2, retCount)
'Wait for "1" from *OPC?
REM --------- Third method: Using *OPC ------------------------------------
REM In order for the Service Request function to be used with a GPIB
REM driver from National Instruments, the setting "Disable
REM Auto Serial Poll" must be set to "yes" with IBCONF!
Kompakthandbuch 1311.0670.61 ─ 03
Programmierung der Fernsteuerung – erste Schritte
'Provide text variable (30 characters)
'Provide space for *OPC? response
Kurzeinführung Fernbedienung
154

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis