WaitOnSRQ

Object type

Method (Write-only)

Syntax

WaitOnSRQ Status, Timeout

Description

Suspends the program for a specified time until the RQS/MSS bit (bit 6) of the status byte register changes to 1. (No read)

Variable

Parameter

Status

Description

State of the RQS/MSS bit (read only)

Data type

Boolean type (Boolean)

Range

One of the following is returned.

  • True or -1

1 has been received within the specified time.

  • False or 0

1 has not been received within the specified time due to time-out or abort.

 

Parameter

Timeout

Description

Time-out time

Data type

Long integer type (Long)

Range

0 to 2,147,483,647

Preset value

-1 (infinity)

Unit

ms (millisecond)

Note

If the specified variable is out of the allowable setup range, the minimum value (if the lower limit of the range is not reached) or the maximum value (if the upper limit of the range is exceeded) is set.

Examples

Dim Stat As Boolean
SCPI.IEEE4882.CLS
SCPI.STATus.OPERation.PTRansition = 0
SCPI.STATus.OPERation.NTRansition = 16
SCPI.STATus.OPERation.ENABle = 16
SCPI.IEEE4882.SRE = 128
SCPI.TRIGger.SEQuence.SOURce = "bus"
SCPI.INITiate(1).CONTinuous = True
SCPI.TRIGger.SEQuence.IMMediate
WaitOnSRQ Stat, 10000
If Stat = True Then
MsgBox "Done"
End If

Equivalent key

No equivalent key is available on the front panel.