
Keysight 34959A User’s Guide
33
Example:
If the Breadboard Module is in slot 7, the following command configures
channels 001 and 002 together as a word:
CONFigure:DIGital:WIDTh WORD, (@7001)
After either channel has been configured as a byte, or both have been configured
as a word, you must then specify the target channel for
input
operations, using the
CONFigure:DIGital:DIRection
command. The syntax is:
CONFigure:DIGital:DIRection <direction>, (@<ch_list>)
Example:
If the Breadboard Module is in slot 3, and channel 002 has been
configured as a byte, the following command configures channel 002 as a
byte-width input:
CONFigure:DIGital:DIRection INPut, (@3002)
Example:
If the Breadboard Module is in slot 5, and both channels have been
configured as a word, the following command configures the combined channel
as a word-width input (note that it is only necessary to specify the first channel in
SCPI, once the word width has been specified):
CONFigure:DIGital:DIRection INPut, (@5001)
Once the data width and direction have been configured, the data (either word,
byte or bit) is read using the
SENSe
command. The syntax is:
SENSe:DIGital:DATA:<width>? (@<ch_list>)
Example:
If the Breadboard Module is in slot 3, and channel 002 has been
configured as a byte input, the following command returns the value of the
channel 002 byte as an integer:
SENSe:DIGital:DATA:BYTE? (@3002)
Example:
If the Breadboard Module is in slot 4, and channels 001 and 002 have
been configured as a word input, the following command returns the value of the
combined channel word as an integer:
SENSe:DIGital:DATA:WORD? (@4001)
Example:
If the Breadboard Module is in slot 6, and channel 001 has been
configured as a byte input, the following command returns the state of bit 4 on the
channel 001 byte:
SENSe:DIGital:DATA:BIT? 4,(@6001)
Содержание 34959A
Страница 1: ...Keysight 34959A Breadboard Module User s Guide...
Страница 8: ...8 Keysight 34959A User s Guide THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK...
Страница 36: ...36 Keysight 34959A User s Guide THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK...
Страница 38: ...38 Keysight 34959A User s Guide THIS PAGE HAS BEEN INTENTIONALLY LEFT BLANK...