background image

2

Agilent 34952A Multifunction Module User’s Guide

34952A SCPI Programming Examples

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 

page 4

For complete information on the SCPI commands used to program the 
34980A, refer to the 

Agilent 34980A Programmer’s Reference

 contained on 

the 

34980A Product Reference

 CD. For example programs, also refer to the 

34980A Product Reference

 CD. 

Digital Input/Output 

Example: Configuring a DIO channel  

The following program segment 

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  

The following command reads the 

count on totalizer channel 5 on the Multifunction module in slot 3.

SENSe:TOTalize:DATA? (@3005)

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 on the Multifunction 
module in slot 3 to be read without resetting its count. 

SENSe:TOTalize:TYPE READ,(@3005)

The following command configures totalizer channel 5 on the Multifunction 
module in slot 2 to be reset to "0" after it is read (

RRESet 

means “read 

and reset”).

CONFigure:TOTalize RRES,(@2005)

Summary of Contents for 34952a

Page 1: ...and service on the web www keysight com Select your country from the drop down menu at the top Under Electronic Test and Measurement click on Services The web page that appears next has contact infor...

Page 2: ......

Page 3: ...Agilent Technologies Agilent 34952A Multifunction Module User s Guide Agilent Technologies Inc Printed in Malaysia Edition 2 September 2012 E0912 34980 90052 34980 90052...

Page 4: ......

Page 5: ...any information contained herein Should Agilent and the user have a separate written agreement with warranty terms covering the material in this document that conflict with these terms the warranty te...

Page 6: ...circuits before removing the instrument cover Do Not Modify the Instrument Do not install substitute parts or perform any unauthorized modification to the prod uct Return the product to an Agilent Sal...

Page 7: ...net There are two methods to obtain the Declaration of Conformity Go to http regulations corporate agilent com DoC search htm You can then search by product number to find the latest Declaration of Co...

Page 8: ...s 34952A Multifunction Module 1 Digital Input Output 1 Totalizer Input 1 Analog Output DAC 1 34952A SCPI Programming Examples 2 Digital Input Output 2 Totalizer 2 DAC Output 3 34952A Simplified Block...

Page 9: ...vi Agilent 34952A Multifunction Module User s Guide...

Page 10: ...nternal 5 V pull up resistors when configured as inputs Totalizer Input The 32 bit totalizer can count pulses at a 100 kHz rate You can configure the totalizer to count on the rising edge or falling e...

Page 11: ...s 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...

Page 12: ...on the specified totalizer channels The following command clears the count on the totalizer channel 5 on a Multifunction module in slot 3 TOTalize CLEAR IMMediate 3005 DAC Output Example Setting outp...

Page 13: ...Diagram DIO 32 Bits Totalizer Count Count Channel 005 Gate D A1 Channel 006 16 Bits D A2 16 Bits Channel 007 8 8 8 8 Channel 001 Bit 0 Bit 7 Channel 002 Bit 8 Bit 15 Channel 003 Bit 16 Bit 23 Channel...

Page 14: ...0 DAC 1L DAC 2H DAC 1H NC GND GND GND DAC 2L 50 50 Pin D Sub Female Connector Description Socket Description Socket Description Socket Description Socket Channel 1 Bit 0 4 Channel 3 Bit 16 26 Channel...

Page 15: ...r The 34980A Product Reference CD shipped with the instrument contains a 34952T Wiring Log for you to document your wiring configuration for this module You can open the wiring log file in Microsoft E...

Page 16: ...Guide 7 Index A analog output 1 C connector pinouts 5 D DAC output 1 digital I O 1 D sub pinouts 5 M module description 1 P pinouts 5 programming examples 2 S simplified block diagram 4 T terminal blo...

Page 17: ...8 Agilent 34952A Multifunction Module User s Guide Index...

Reviews: