Instrument Programming Examples
Remote Programming Examples
4D
4D-5
Operation Status Register
Requirement:
To perform a single sweep from 1 MHz to 10 MHz in 1 MHz steps with
133 ms between each step at 1V rms. Monitor the Operational Status bit that indicates
that the sweep is in progress.
INST SWEEP
FREQ:START 1E6;:FREQ:STOP 10000000
UNIT:POWER VRMS
:POWER 1.0
:SWE:DWELL 0.133
SWEEP:STEP 1E6
:INIT:CONT OFF
OUTP ON
:INIT
STATUS:OPER:COND?
<- Instrument responds with a value that has bit 4 set, i.e., the value 8 wait
for 5 seconds
STATUS:OPER:COND?
<- Instrument responds with a value that has bit 0 clear, i.e., the value 0
SRQ Operation and Error Handling
Requirement:
To generate a service request from the Instrument when it detects a
problem.
*RST
*CLS
INST SINE
*SRE 255
*ESE 255
UNIT:POWer DBM
POW 1
<- this command would be executed by the Instrument
POW 1E6
<- The user meant to set up 1MHz, with FREQ 1E6
<- Instrument generates an SRQ
*STB?
<- Instrument responds with the value 32 (decimal). This indicates there is
Event flag
*ESR?
<- the Event Register returns 15 (decimal) meaning there is an execution
error.
SYST:ERR?
<- Instrument returns the message from the error queue
<- -222”Data out of range;Value too large”
<- indicating the problem with the last command
Summary of Contents for 9640A Series
Page 8: ......
Page 16: ...9640A Instruction Manual viii...
Page 22: ...9640A Instruction Manual 1 2...
Page 40: ...9640A Instruction Manual 2 2...
Page 108: ...9640A Instruction Manual 4A 2...
Page 138: ...9640A Instruction Manual 4C 2...
Page 164: ...9640A Instruction Manual 4D 2...
Page 168: ...9640A Instruction Manual 4D 6...
Page 170: ...9640A Instruction Manual 4E 2...
Page 174: ...9640A Instruction Manual 4E 6...
Page 176: ...9640A Instruction Manual 4F 2...
Page 184: ...9640A Instruction Manual 4F 10...
Page 186: ...9640A Instruction Manual 4G 2...
Page 190: ...9640A Instruction Manual 4G 6...
Page 192: ...9640A Instruction Manual 5 2...
Page 272: ...9640A Instruction Manual 5 82...
Page 274: ...9640A Instruction Manual 6 2...
Page 284: ...9640A Instruction Manual 7 2...
Page 310: ...9640A Instruction Manual 8 2...
Page 316: ...9640A Instruction Manual 8 8...
Page 320: ...9640A Instruction Manual A 4...