2-25 Programming Examples
Programming with GPIB Commands
2-66
PN: 10370-10374 Rev. F
MG369xC GPIB PM
Program Explanation:
Line 30: Sets the address of the signal generator.
Line 40: Calls the device identification subroutine described in Line 1010.
Line 50: Turns off the key definitions.
Lines 60-110: Accept the starting frequency entry and checks its validity.
Lines 120-170: Accept the step size entry and checks its validity.
Line 180: Sets the signal generator to the starting frequency and step size.
Lines 190-240: Set up keys and key labels.
Line 250: Waits for a key to be pressed.
Line 300: Reports that the STEP UP key was pressed; sends the UP command.
Line 310: Waits for the next key.
Line 320: Reports that the STEP DOWN key was pressed; send the DN command.
Line 330: Waits for the next key.
Line 340: Ends the main program.
Lines 1010-1120: Identify the signal generator address, model, frequency range, and power range.
Figure 2-19.
Controlling CW Frequency/Parameter Entries (2 of 2)
Содержание MG369 C Series
Страница 2: ......
Страница 6: ...Contents 4 PN 10370 10374 Rev F MG369xC GPIB PM ...
Страница 262: ...A 34 PN 10370 10374 Rev F MG369xC GPIB PM ...
Страница 264: ...Index 2 PN 10370 10374 Rev F MG369xC GPIB PM ...
Страница 265: ......