Remote Operation
Example Programs
| Example 4. Maximum and minimum amplitude values | |
Description | The marker delta function is used to find the maximum and minimum (peak | |
| and pit) values of the signal. |
|
Program | PRINT “Peak to Pit Example” |
|
| OUTPUT 723;”disp:wind:text:data ‘Minimum & Maximum Signals’” | |
| ! |
|
|
| |
| OUTPUT 723;”*rst” | ! Preset the instrument |
| PRINT “Presetting the instrument” |
|
| ! |
|
|
| |
| OUTPUT 723;”disp:wind:trac:all:scal:auto” | ! Automeasure |
| PRINT “Performing Automeasure” |
|
| ! |
|
|
| |
| OUTPUT 723;”cal:alig:mark1” | ! Perform an autoalignment |
| PRINT “Performing Autoalign” |
|
| ! |
|
|
| |
| ! Next line is the operation complete query used so that the text is not printed | |
| ! until after the Autoalign is complete |
|
| OUTPUT 723;”*opc?” |
|
| ENTER 723;Dum |
|
| PRINT “...measurement begins” |
|
| ! |
|
| OUTPUT 723;”sens:wav:span 10 nm” | ! Set span |
| ! |
|
| OUTPUT 723;”init:imm” | ! Take a single sweep |
| OUTPUT 723;”calc1:mark1:max” | ! Marker to peak |
| OUTPUT 723;”calc1:mark1:scen” | ! Marker to center |
| ! |
|
| OUTPUT 723;”sens:pow:dc:rang:low | ! Set sensitivity |
| OUTPUT 723;”init:imm” | ! Take a single sweep |
| ! |
|
| OUTPUT 723;”calc1:mark1:max” | ! Marker to peak |
| OUTPUT 723;”calc1:mark1:x?” | ! Read marker wavelength |
| ENTER 723;Markwl |
|
| OUTPUT 723;”calc1:mark1:y?” | ! Read marker amplitude |
| ENTER 723;Markamp |
|
| ! |
|
| ! Turn on marker delta |
|
| OUTPUT 723;”calc1:mark1:func:delt:stat on” |
|
| ! |
|
| OUTPUT 723;”calc1:mark1:min” | ! Marker to pit |
| ! |
|
| OUTPUT 723;”calc1:mark1:func:delt:y:offs?” | ! Read Delta Y Marker |
| ENTER 723;Markdelty |
|
| OUTPUT 723;”calc1:mark1:func:delt:x:offs?” | ! Read the x delta marker |
| ENTER 723;Markdeltx |
|
| ! |
|