330 34980A User’s Guide
13 Breadboard Module
Read Command Syntax
Before reading digital data from the breadboard, you must first configure
the digital channel width as byte or word, using the
CONFigure:DIGital:WIDTh command. The syntax is:
CONFigure:DIGital:WIDTh <width>,(@<ch_list>)
Example: If the Breadboard Module is in slot 1, the following command
configures channel 002 as a byte:
CONFigure:DIGital:WIDTh BYTE, (@1002)
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)