142
Chapter 5 Remote Interface Reference
Digital I/O Commands
5
Digital Input Commands
These commands read individual bits or complete ports. Some digital I/O
configuration commands may affect how these bits are read. The port
parameter is in the form snn, where s is the slot number and nn is the
first channel on the digital port. The port parameter is plug-in module
dependent. Valid port numbers for each plug-in module are shown
beginning on page 70.
SENSe:DIGital:DATA
:BIT? <bit_port>
This query reads a bit from the specified bit_port and returns either a “0”
or a “1”. bit_port is in the form of snn, where s is the slot number and nn
is the bit number. The built-in 4-bit digital I/O port has bit numbers 091
to 094. The plug-in module bit numbers are module dependent (see page
70).
SENSe:DIGital:DATA
[:<BYTE|WORD|LWORD>][:VALue]? <port>
This query reads data from the specified port and returns an integer
representing the binary-weighted value of the bits. The value returned
depends upon the first parameter as follows:
•
BYTE -
reads 8 bits and returns an integer between 0 and 255 (00
h
and FF
h
).
•
WORD -
reads 16 bits and returns an integer between -32768 and
+32767 (-8000
h
and +7FFF
h
). Negative numbers returned are 2’s
complement numbers.
•
LWORD
- reads 32 bits and returns an integer between -2
31
and
+(2
31
-1) (-80000000
h
and 7FFFFFFF
h
). Negative numbers returned
are 2’s complement numbers.
Numbers greater than +32767 (
WORD
) and +(2
31
-1) (
LWORD
) will be
returned as negative numbers. When the returned data is negative, you
must calculate the actual bit state from the 2’s complement form.
Содержание Agilent 3499A
Страница 13: ...1 1 Quick Start ...
Страница 27: ...2 2 Front Panel Operation ...
Страница 55: ...3 3 System Overview ...
Страница 77: ...4 4 Features and Functions ...
Страница 113: ...5 5 Remote Interface Reference ...
Страница 164: ...164 5 ...
Страница 165: ...6 6 Error Messages ...
Страница 173: ...7 7 Plug in Modules ...
Страница 256: ...256 Chapter 7 Plug in Modules 44475A Breadboard Module 7 ...
Страница 261: ...261 Chapter 7 Plug in Modules 44476B Microwave Switch Module 4 7 The 44476B is shown below ...
Страница 268: ...268 Chapter 7 Plug in Modules 44478A B 1 3 GHz Dual 4 to 1 MUX Modules 7 The 44478A B is shown below ...
Страница 286: ...286 Chapter 7 Plug in Modules Terminals and Connections Information 7 ...
Страница 288: ...288 7 ...
Страница 289: ...8 8 Application Programs ...
Страница 299: ...9 9 Specifications ...
Страница 343: ...343 Chapter 9 Specifications 44475A Breadboard Module 4 9 ...