Agilent Technologies A.18.00 User Manual

Page of 581
 87
Chapter 3, GPIB Command Guidelines
Guidelines for Operation
Using the STATe Command 
The STATe command corresponds to the front-panel ON/OFF key and is used to 
programmatically turn measurements, instrument functions, and data functions 
ON or OFF. 
Turning measurements, instrument functions and data functions ON/OFF 
Use 1 or ON to turn measurements, instrument functions, or data functions ON. 
Use 0 or OFF to turn measurements, instrument functions, or data functions OFF. 
For example, the following BASIC language statements illustrate the use of the 
STATe command to turn several measurements, instrument functions, and data 
functions ON and OFF: 
!Turn off FM source AFG1. *
OUTPUT 714;"AFG1:FM:STAT OFF"
!Turn off REFerence SET data function
OUTPUT 714;"MEAS:AFR:DISTN:REF:STAT OFF"
!Turn off TX Power measurement
OUTPUT 714;"MEAS:RFR:POW:STAT 0"
!Turn on REF SET measurement function for FM Deviation measurement
OUTPUT 714;"MEAS:AFR:FM:REF:STAT ON"
*This assumes the 
AFGen1 To
 field is set to FM.