15 Programming Examples
364 U8480 Series Programming Guide
The following programming sequence example performs a power sweep.
-> TRIG:SOUR EXT  // Sets the external trigger source required for 
the power sweep operation.
-> TRIG:SLOP POS  // Sets the U8480 Series to accept an external 
positive-edge trigger. 
-> AVER:COUN 64  // Sets the filter length to 64.
-> *OPC // Enables the OPC feature.
-> *ESR? // *ESR? is issued for the first time.
<- 129 // Some non-zero value (any value ranging from 
0 to 255) will be returned when *ESR? is 
issued for the first time.
-> *ESR? // *ESR? is issued for the second time.
<- 0 // The returned value will be cleared to 0 when 
*ESR? is issued for the second time.
-> BUFF:COUN 2  // Sets the power sweep mode to capture two 
triggers.
-> INIT:CONT ON  // Sets the U8480 Series to accept continuous 
trigger cycles. 
Sends a positive-edged trigger to the U8480 Series through the external trigger 
port.
-> *ESR? // Checks the OPC bit to confirm that the power 
sweep operation has completed.
<- 0 // Returns a 0 if the power sweep operation has 
not completed.
Sends another positive-edged trigger to the U8480 Series through the external 
trigger port.