
Remote commands
R&S
®
FSVA3000/ R&S
®
FSV3000
1422
User Manual 1178.8520.02 ─ 08
If the program is to respond to user inputs also during a waiting time, control over the
program events during this time must be returned to the operating system. In Visual
Basic, this is done by calling the
DoEvents
function. This function causes keyboard-or
mouse-triggered events to be executed by the associated elements. For example, it
allows the operation of buttons and input fields while the user waits for an instrument
setting to be completed.
The following programming example describes the
Hold()
function, which returns
control to the operating system for the period of the waiting time selectable in millisec-
onds.
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
milliseconds>)
.
12.15.2.4
Service request routine
A service request is processed in the service request routine.
The variables userN% and userM% must be pre-assigned usefully!
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
Programming examples
Содержание FSV3000
Страница 1: ...R S FSVA3000 R S FSV3000 Signal and Spectrum Analyzer User Manual 1178852002 Version 08 ÜãD2 ...
Страница 32: ...Contents R S FSVA3000 R S FSV3000 32 User Manual 1178 8520 02 08 ...
Страница 287: ...Measurements and results R S FSVA3000 R S FSV3000 287 User Manual 1178 8520 02 08 Statistical measurements APD CCDF ...
Страница 673: ...Data management R S FSVA3000 R S FSV3000 673 User Manual 1178 8520 02 08 Working with test reports ...