Section 10 Program Examples
10-4
(2) Obtaining a side mode ratio
Shown below is an example of a program that obtains a spectrum waveform side mode ratio. In this example,
the second peak existing on the left of the peak (shorter wavelength side) is subjected to the analysis.
90 WRITE @108 : “ANA SMSR, LEFT”
100 DO
110 WRITE @ 108 : “ESR2 ?”
120 READ @ 108 ; ESR2
130 EXIT IF BIT (0, ESR2) =1 ! analysis end
140 LOOP
150 WRITE @108 : “ANAR?”
160 READ @108 : WAVE, LEVEL
170 IF WAVE < 0 THEN
180 PRINT “∗∗∗ can’t analysis ∗∗∗”
190 ELSE
200 PRINT “wave diff =” : WAVE : “nm”
210 PRINT “level diff =” : LEVEL : “dB”
220 END IF
Line 90: Carry out side mode analysis.
Lines 100 to 140: Wait for the end of analysis.
Lines 150 to 160: Input the analysis result.
Lines 170 to 210: Print the result.
After execution of analysis, the end of the analysis is waited and the result is input. The result is printed to
allow the operator to check whether the second peak exists and whether a normal analysis value is obtained.