I
-
Automating Measurements
Operator Interaction
Finally, the LIMIT TEST TTL
IN/OUT
line
can be used as a general-purpose
output line. With limit testing turned off, the state of the line can be set to
logic high or low with either the SCPI command
“DIAG:PORT:WRITE
<port number>”
or with the
BASIC
command
“WRITE10
<number>
,value”.
Following is an example of reading the
LIMIT
TEST TTL
IN/OUT
line when
used as an input:
30 Limit
=
READI0(15,2)
40
! The “Limit” variable will be set to 0 if the signal is low,
50
! and 1 if the signal is high.
7-38