
36
The following command sequence monitors digital input channel 111. When input pattern 11111111 appears on the input port,
the scan will start. Keep in mind that the scan will continue to repeat as long as a pattern match exists on channel 111.
SYST:PRES
‘ Return to default settings.
TRAC:CLE
‘ Clear buffer.
ROUT:SCAN (@101:104,111)
‘ Set scan list.
CALC3:LIM1:DIG:MODE PATT,(@111)
‘ Select pattern mode.
CALC3:LIM1:DIG:PATT #HFF,(@111)
‘ Set pattern (11111111).
ROUT:MON:POIN 5
‘ Specify number of channels in scan.
ROUT:MON (@111)
‘ Specify channel 111 as monitor channel.
ROUT:MON:STAT ON
‘ Enable monitor channel.
CALC3:LIM1:STAT ON,(@111)
‘ Enable limit 1.
ROUT:SCAN:TSO HLIM1
‘ Set trigger source for scan.
NOTE
The :TSO HLIM1 command sets the monitor scan to start when high limit 1 is reached. For a
digital monitor scan, the low limit trigger source parameter (LLIM1) can instead be used. Both
settings will trigger the scan when a pattern match occurs.
Table 6
Commands for digital inputs
Command
Description
Default
Set port(s) as input or output:
OUTput:DIGital
Path to set channels of digital I/O port:
:STATe <b>, <clist>
Set listed channels as input or output; 0 (off) sets channels as input
ports. 1 (on) sets channels as output ports.
Note 1
:STATe? <clist>
Query port type for listed channels; 0 = input, 1 = output.
Read input port bit patterns:
SENSe:DIGital[:DATA]
Path to read digital input patterns:
:FORMat <name>, [<NRf>]
Select data format for reading digital inputs
2
:
<name> = ASCii
Decimal format
BINary
Binary format
HEXadecimal
Hexadecimal format
OCTal
Octal format
<NRf> = 0
Return value without leading zeros
1 to 32
Specify number of digits to return
Note 3
:FORMat?
Query data format for reading digital inputs.
:BYTE? <clist>
Read byte input patterns (valid channels are 11, 12, 13, and 14).
:WORD? <clist>
Read word input patterns
(valid channels are 11 and 13).
:DWORd? <clist>
Read double-word input pattern
(valid channel is 11).
Add digital channel(s) to scan list:
ROUTe:SCAN <clist>
Specify channel list (analog and/or digital input channels).
ROUT:SCAN?
Query scan list.
Содержание 7707
Страница 55: ...52 Specifications 7707 Multiplexer Digital I O Module...
Страница 58: ......