Reading a Query Response
Only the query commands (commands that end with “ ? ”) will instruct
the function generator to send a response message. Queries return
either output values or internal instrument settings. For example,
the following statements executed from your computer will read the
function generator’s error queue and print the most recent error:
dimension statement Dimension string array (80 elements)
"SYST:ERR?" Read error queue
bus enter statement Enter error string into computer
print statement Print error string
Selecting a Trigger Source
When burst modulation or frequency sweep is enabled, the function
generator will accept an immediate internal trigger, a hardware trigger
from the rear-panel Ext Trig terminal, or a software (bus) trigger.
By default, the internal trigger source is selected. If you want the
function generator to use the external source or a bus trigger, you must
select that source. For example, the following statements executed from
your computer will output a 3-cycle burst each time the Ext Trig
terminal receives the rising edge of a
TTL pulse:
"BM:NCYC 3" Set burst count to 3 cycles
"TRIG:SOUR EXT" Select external trigger source
"BM:STAT ON" Enable the burst mode
4
Chapter 4 Remote Interface Reference
Simplified Programming Overview
137