![Rohde & Schwarz R&S FSP Series Скачать руководство пользователя страница 739](http://html.mh-extra.com/html/rohde-and-schwarz/rands-fsp-series/rands-fsp-series_operating-manual_1477864739.webp)
Operating Manual 1164.4556.12 - 06
7.5
R&S FSP
Remote Control – Programming Examples
Basic Programming Steps for the VISA Interface
The following programming example describes the
Hold()
function, which returns
control to the operating system for the period of the waiting time selectable in milli-
seconds.
Rem **********************************************************************
Rem The waiting function below expects the transfer of the desired
Rem waiting time in milliseconds. The keyboard and the mouse remain
Rem operative during the waiting period, thus allowing desired elements
Rem to be controlled
REM **********************************************************************
Public SUB Hold(delayTime As Single)
Start = Timer
'Save timer count on calling the function
DO While Timer < Start + delayTime / 1000
'Check timer count
DoEvents
'Return control to operating system to enable control of
desired elements as long as timer has not elapsed
LOOP
END SUB
REM **********************************************************************
The waiting procedure is activated simply by calling
Hold(<Waiting time in millisec-
onds>)
.
7.2.1.4
Service Request Routine
A service request is processed in the service request routine.
REM ------------ Service request routine ----------------------------------
Public SUB Srq()
ON ERROR GOTO noDevice
'No user existing
Call viReadSTB(analyzer, STB%)
'Serial poll, read status byte
IF STB% > 0 THEN
'This instrument has bits set in the STB
SRQFOUND% = 1
IF (STB% AND 16) > 0 THEN CALL Outputqueue
IF (STB% AND 4) > 0 THEN CALL ErrorQueueHandler
IF (STB% AND 8) > 0 THEN CALL Questionablestatus
IF (STB% AND 128) > 0 THEN CALL Operationstatus
IF (STB% AND 32) > 0 THEN CALL Esrread
END IF
noDevice:
END SUB
REM ***********************************************************************
Reading out the status event registers, the output buffer and the error/event queue
is effected in subroutines.
Содержание R&S FSP Series
Страница 1: ...R S FSP Spectrum Analyzer Operating Manual 1164 4556 12 06 Test Measurement Operating Manual ...
Страница 24: ...R S FSP Putting into Operation 1 2 Operating Manual 1164 4556 12 06 ...
Страница 72: ...R S FSP Manual Operation 3 2 Operating Manual 1164 4556 12 06 ...
Страница 362: ...R S FSP Instrument Functions Trigger Port Option R S FSP B28 4 290 Operating Manual 1164 4556 12 06 ...
Страница 764: ...R S FSP Remote Control Programming Examples More Complex Programming Examples 7 30 Operating Manual 1164 4556 12 06 ...
Страница 793: ...R S FSP Index Operating Manual 1164 4556 12 06 4 11 ...
Страница 794: ...R S FSP 4 12 Operating Manual 1164 4556 12 06 ...
Страница 795: ...Operating Manual 1164 4556 12 06 4 13 R S FSP ...
Страница 796: ...R S FSP 4 14 Operating Manual 1164 4556 12 06 ...