1256E User Manual
Digital Module Operation 7-6
Racal Instruments
©
2002
more ports on the 1260-114 modules.
The <port list> defines which port or ports to be written.
The <data list> is a list of comma-separated numeric values, each
of which is in the range 0 to 255. The number of data bytes in the
<data list> must agree with the number of ports specified in the
<port list>.
Examples of this command are shown below.
Output the data value 38 decimal to port 0 of module 7:
:DIG:OUTP (@7(0)),38
Output data value 55 hex (= 85 decimal) to port 0 and AA hex (=
170 decimal) to port 3 of module 7:
:DIG:OUTP (@7(0,3)),#H55,#HAA
Output the value 0 to port 0, 1 to port 1, 2 to port 2, and so on.
Data is output to each of the 12 ports on the module whose name
has been defined as “digio”:
:DIG:OUTPUT(@digio(0:11)),0,1,2,3,4,5,6,
7,8,9,10,11
Output the value 1 to port 5 of module 7; output 2 to port 11 of
module 7, and output 3 to port 4 of module 8:
DIGITAL:OUTPUT (@7(5,11),8(4)),1,2,3
The DIGITAL:INPUT? query is used to read data from the port.
The <port list> specifies which ports will be read. The reply to this
query is a comma-separated list of values, one per port. Data are
returned in decimal values.
Examples of this query are shown below.
Read data from port 4 of module 7, and return the data in the reply.
An example of the reply is “37":
DIG:INPUT? (@7(4))
Read data from ports 1 through 6 (in reverse order) from the 1260-
114 or 1260-114C with module address 11:
DIGITAL:INPUT? (@11(6:1))
An example reply is:
Содержание 1256E
Страница 5: ......
Страница 6: ...This page was left intentionally blank...
Страница 20: ...1256E User Manual Introduction 1 6 Racal Instruments 2002 This page was left intentionally blank...
Страница 30: ...1256E User Manual Getting Started 2 10 Racal Instruments 2002 This page was left intentionally blank...
Страница 96: ...1256E User Manual Computer Interfaces 4 32 Racal Instruments 2002 This page was left intentionally blank...
Страница 104: ...1256E User Manual SCPI Command Basics 5 8 Racal Instruments 2002 Figure 5 1 IEEE 488 2 Status Reporting Model...
Страница 146: ...1256E User Manual SCPI Command Reference 6 6 Racal Instruments 2002...
Страница 179: ...1256E User Manual Racal Instruments 2002 Advanced SCPI Operations 8 15 select input and output trigger sources and so on...
Страница 190: ...1256E User Manual Product Support 9 4 Racal Instruments 2002 This page was left intentionally blank...