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
IBASIC
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
深圳市盛腾仪器仪表有限公司 Tel:0755-83589391 Fax:0755-83539691 Website: www.Sengt.com