![background image](http://html1.mh-extra.com/html/rands/esu-series/esu-series_operating-manual_3138875794.webp)
Operating Manual 1302.6163.12 - 03
7.5
R&S ESU
Remote Control – Programming Examples
Basic Programming Steps for the VISA Interface
7.2.1.3
Waiting Without Blocking the Keyboard and Mouse
A frequent problem with remote control programs using Visual Basic is to insert wait-
ing times without blocking the keyboard and the mouse.
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 key-
board- 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 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>)
.
Содержание ESU Series
Страница 1: ...R S ESU EMI Test Receiver Operating Manual 1302 6163 12 03 Test Measurement Operating Manual...
Страница 25: ......
Страница 27: ...R S ESU Putting into Operation 1 2 Operating Manual 1302 6163 12 03...
Страница 29: ...R S ESU Getting Started 2 2 Operating Manual 1302 6163 12 03...
Страница 31: ...R S ESU Manual Operation 3 2 Operating Manual 1302 6163 12 03...
Страница 349: ...R S ESU Instrument Functions Basic Settings 4 318 Operating Manual 1302 6163 12 03...
Страница 405: ...R S ESU Instrument Functions User Port 4 374 Operating Manual 1302 6163 12 03...
Страница 439: ...R S ESU Remote Control Basics Status Reporting System 5 34 Operating Manual 1302 6163 12 03...
Страница 821: ...R S ESU Remote Control Programming Examples More Complex Programming Examples 7 32 Operating Manual 1302 6163 12 03...
Страница 841: ...R S ESU Error Messages Device Specific Messages 9 10 Operating Manual 1302 6163 12 03...
Страница 854: ...Operating Manual 1302 6163 12 03 10 13 R S ESU...
Страница 855: ...R S ESU 10 14 Operating Manual 1302 6163 12 03...