R&S ESU Series Operating Manual page 793

Emi test receiver
Table of Contents

Advertisement

R&S ESU
Non-blocking (user inputs possible)
This method is recommended if the waiting time until the event to be signalled by an
SRQ is long (longer than the selected time-out), and user inputs should be possible
during the waiting time, or if the event is not certain to occur. This method is, there-
fore, the preferable choice for waiting for the end of measurements, i.e. the output of
results, especially in the case of triggered measurements.
The method necessitates a waiting loop that checks the status of the SRQ line at
regular intervals and returns control to the operating system during the time the
expected event has not yet occurred. In this way, the system can respond to user
inputs (mouse clicks, key entries) during the waiting time.
A query of the VI_ATTR_GPIB_SRQ_STATE attribute can only be sent from the
controller, not from the instrument. Therefore, the handle of the controller board is
used for this calling of the viGetAttribute attribute.
It is advisable to employ the Hold() auxiliary function, which returns control to the
operating system for a selectable waiting time (see section
ing the Keyboard and Mouse" on page
ing time.
result% = 0
For i = 1 To 10
'Abort after max. 10 loop iterations
Call viGetAttribute(board, VI_ATTR_GPIB_SRQ_STATE, result%)
'Check service request line
If (result% <> 0) Then
CALL Srq
'If SRQ is recognized => subroutine for evaluation
Else
CALL Hold(20)
'Call hold function with 20 ms waiting time.
'User inputs are possible.
Endif
Next i
If result% = 0 Then
PRINT "Timeout Error; Program aborted"
'Output error message
STOP
'Stop software
Endif
7.4
Remote Control – Programming Examples
Basic Programming Steps for the VISA Interface
7.5), so enabling user inputs during the wait-
Operating Manual 1302.6163.12 - 03
"Waiting Without Block-

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents