34952A Scpi Programming Examples; Digital Input/Output; Totalizer - Keysight Technologies 34952A User Manual

Multifunction module
Table of Contents

Advertisement

34952A SCPI Programming Examples

The programming examples below provide you with SCPI command examples to
use for actions specific to the general purpose switch modules.
The slot and channel addressing scheme used in these examples follow the form
sccc where s is the mainframe slot number (1 through 8) and ccc is the channel
number. For information on specific configurations, refer to the simplified
schematic on
For complete information on the SCPI commands used to program the 34980A,
refer to the Keysight 34980A Programmer's Reference which can be downloaded
from www.keysight.com/find/34980A.

Digital Input/Output

Example: Configuring a DIO channel
configures channel 1 on the DAC module in slot 3 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,(@3001)
SENSe:DIGital:DATA:BIT? 0,(@3001)
The second command below returns whatever is being input externally.
CONFigure:DIGital:STATe INPut,(@3001)
SENSe:DIGital:DATA:BIT? 0,(@3001)

Totalizer

Example: Reading totalizer channel count
count on totalizer channel 5 on the Multifunction module in slot 3.
SENSe:TOTalize:DATA? (@3005)
Example: Configuring the totalizer reset mode
reset mode, send either of the following commands.
The following command configures totalizer channel 5 on the Multifunction
module in slot 3 to be read without resetting its count.
10
page
12.
The following program segment
The following command reads the
To configure the totalizer
Keysight 34952A User's Guide

Advertisement

Table of Contents
loading

Table of Contents