Agilent Technologies E1330B User's Manual And Scpi Programming Manual page 17

75000 series b quad 8-bit digital i/o module
Hide thumbs Also See for E1330B:
Table of Contents

Advertisement

Specifying a Bit
Specifying Multiple Port
Operations
Chapter 1
Each of the four ports on the module has eight bi-directional data lines,
corresponding to eight programmable data bits. Some SCPI commands
allow you manipulate or read these bits individually. For example:
MEASure:DIGital:DATA
This command reads the state of a bit, specified by m, on port n. The result
will be either 0 or 1, indicating the current logical state of the bit. Replace m
with the desired bit number, and n with the desired port number, making
each number the last characters of the
spaces. For example, to read bit 7 on port 0, use the following command:
MEASure:DIGital:DATA0:BIT7?
For single ports, the value of m can range from 0 to 7. Some multiple port
operations and commands may allow bit numbers to range from 0 to 31.
The Digital I/O module allows you to set or read multiple ports or bits with
a single command. For example:
MEASure:DIGital:DATA
This command uses an optional keyword,
are combined in a single returned value. The lower case keyword
replaced with one of a fixed set of keywords. For example, to read all 4 ports
(all 32-bits) as a single returned value, use the command:
MEASure:DIGital:DATA0:LWORd?
Keywords are provided to allow port combinations of 16- or 32-bits. Using
multiple ports is described in more detail in Chapter 4 of this manual.
n
m
:BIT
?
and
DATA
BIT
n
[:type]?
[:type]
, to specify how many ports
keywords without
[:type]
is
Getting Started
15

Advertisement

Table of Contents
loading

Table of Contents