Agilent Technologies N5183A MXG User Manual

Page 80

Advertising
background image

70

Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide

Programming Examples
GPIB Programming Interface Examples

The following program example is available on the signal generator Documentation CD- ROM as
basicex2.txt

.

10 !*************************************************************************

20 !

30 ! PROGRAM NAME: basicex2.txt

40 !

50 ! PROGRAM DESCRIPTION: In REMOTE mode, access to the signal generators

60 ! functional front panel keys are disabled except for

70 ! the Local and Contrast keys. The LOCAL LOCKOUT

80 ! command will disable the Local key.

90 ! The LOCAL command, executed from the controller, is then

100 ! the only way to return the signal generator to front panel,

110 ! Local, control.

120 !*************************************************************************

130 Sig_gen=719 ! Declares a variable to hold signal generator address

140 CLEAR Sig_gen ! Resets signal generator parser and clears any output

150 LOCAL Sig_gen ! Places the signal generator in local mode

160 REMOTE Sig_gen ! Places the signal generator in remote mode

170 CLEAR SCREEN ! Clears the controllers display

180 OUTPUT Sig_gen;"*RST" ! Places the signal generator in a defined state

190 ! The following print statements are user prompts

200 PRINT "The signal generator should now be in remote."

210 PRINT "Verify that the 'R' and 'L' annunciators are visable"

220 PRINT ".......... Press Continue"

230 PAUSE

240 LOCAL LOCKOUT 7 ! Puts the signal generator in LOCAL LOCKOUT mode

250 PRINT ! Prints user prompt messages

260 PRINT "Signal generator should now be in LOCAL LOCKOUT mode."

270 PRINT

280 PRINT "Verify that all keys including `Local' (except Contrast keys) have no effect."

290 PRINT

300 PRINT ".......... Press Continue"

310 PAUSE

320 PRINT

330 LOCAL 7 ! Returns signal generator to Local control

340 ! The following print statements are user prompts

350 PRINT "Signal generator should now be in Local mode."

360 PRINT

370 PRINT "Verify that the signal generator's front-panel keyboard is functional."

380 PRINT

390 PRINT "To re-start this program press RUN."

400 END

Advertising
This manual is related to the following products: