Remote Operation
Example Programs
OUTPUT 723;”calc1:mark1:func:bwid:read wav” | ! Sets the BW unit of measure to WL |
OUTPUT 723;”calc1:mark1:func:bwid:stat on” | ! Enable bandwidth marker |
! |
|
OUTPUT 723;”calc1:mark1:func:bwid:res?” | ! Returns X axis values between markers |
ENTER 723;Rbw |
|
IF Rbw<9.E+37 THEN Cnt | ! Test for valid result |
PRINT “ BW not found” |
|
STOP |
|
Cnt: | ! BW was determined |
! |
|
OUTPUT 723;”calc1:mark1:func:bwid:x:left?” | ! Read left BW marker X axis value |
ENTER 723;Markleft |
|
OUTPUT 723;”calc1:mark1:func:bwid:x:righ?” | ! Read right BW marker X axis value |
ENTER 723;Markright |
|
! |
|
! Convert to standard measurement units (nm) |
|
Rbw=Rbw*1.E+9 |
|
Markleft=Markleft*1.E+9 |
|
Markright=Markright*1.E+9 |
|
! |
|
PRINT “20 dB Marker bandwidth”;Rbw;”nm” |
|
PRINT “Left marker”;Markleft;”nm” |
|
PRINT “Right marker”;Markright;”nm” |
|
PRINT “Center”;Rbw/2+Markleft;”nm” |
|
! |
|
LOCAL 723; |
|
END |
|