![Keysight 34959A Скачать руководство пользователя страница 34](http://html1.mh-extra.com/html/keysight/34959a/34959a_user-manual_1961115034.webp)
34
Keysight 34959A User’s Guide
Write Command Syntax
Before writing digital data to the breadboard outputs, you must first configure the
digital channel width as byte or word, using the same commands listed under
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
output
operations, using
the
CONFigure:DIGital:DIRection
command. The syntax is the same as for
input operations, except for the specified
<direction>
.
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 output:
CONFigure:DIGital:DIRection OUTPut, (@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 output (note that it is only necessary to specify the first channel
in SCPI, once the two channels have been configured as a word):
CONFigure:DIGital:DIRection OUTPut, (@5001)
Once the data width and direction have been configured, the data (either word,
byte or bit) is written to the output lines using the
SOURce
command. The syntax
of that command is subtly different for writing a single bit versus writing an entire
byte or word.
To output a digital bit, the specified bit number must be 0 (LSB) through 7 (MSB)
of the targeted byte, and the syntax is:
SOURce:DIGital:DATA:BIT {0|1}, <bit>, (@<ch_list>)
Example:
If the Breadboard Module is in slot 3, and channel 002 has been
configured as a byte output, the following command writes a 1 to bit 6 of channel
002:
SOURce:DIGital:DATA:BIT 6,1 (@3002)
To output a digital byte, the specified value may be binary (valid values from
#B00000000 through #B11111111), hexadecimal (valid values from #H0 through
#HFF) or integer (valid values 0 through 255) and the syntax is:
SOURce:DIGital:DATA:BYTE <data>, (@<ch_list>)
Содержание 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...