Agilent Technologies L4400 Guitar User Manual


 
L4452A Multifunction Module with DIO, D/A, and Totalizer 10
L4400 User’s Guide 241
L4452A Example Program Segments
The following sections contain example program segments of commonly
used instrument functions.
The slot and channel addressing scheme used in these examples follow
the form 1ccc where ccc is the channel number. For information on
specific configurations, refer to the simplified schematic on page 243.
For detailed example programs involving multiple drivers and
development environments, refer to the the L4400 Product Reference
CD- ROM (p/n 34989- 13601).
Digital Input/Output
Example: Configuring a DIO channel The following program segment
configures channel 1 on the DAC as an output and then reads the output
value (the channel is not reconfigured as an input). Then, the channel is
reconfigured as an input and the value is read again.
The second command below returns 64 as it is physically reading the
output data.
SOURce:DIGital:DATA:BYTE 64,(@1001)
SENSe:DIGital:DATA:BIT? 0,(@1001)
The second command below returns whatever is being input externally.
CONFigure:DIGital:STATe INPut,(@1001)
SENSe:DIGital:DATA:BIT? 0,(@1001)
Totalizer
Example: Reading totalizer channel count The following command reads the
count on totalizer channel 5.
SENSe:TOTalize:DATA? (@1005)
Example: Configuring the totalizer reset mode To configure the totalizer reset
mode, send either of the following commands.
The following command configures totalizer channel 5 to be read without
resetting its count.
SENSe:TOTalize:TYPE READ,(@1005)
The following command configures totalizer channel 5 to be reset to "0"
after it is read (RRESet means “read and reset”).
CONFigure:TOTalize RRES,(@1005)