EasyManuals Logo

Agilent Technologies 33120A User Manual

Agilent Technologies 33120A
312 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #264 background imageLoading...
Page #264 background image
. . . continued
250 !
260 ! Set up function generator to output FM waveform
270 !
280 OUTPUT @Fgen;"OUTP:LOAD 50" ! Output termination is 50 ohms
290 OUTPUT @Fgen;"APPL:SIN 5000,5" ! Carrier waveshape is sine function,
300 ! output frequency is 5 kHz @ 5 Vpp
310 OUTPUT @Fgen;"FM:INT:FUNC SIN" ! Modulating waveshape is sine wave
320 OUTPUT @Fgen;"FM:INT:FREQ 500" ! Modulating frequency is 500 Hz
330 OUTPUT @Fgen;"FM:DEV 250" ! Frequency deviation is 250 Hz
340 OUTPUT @Fgen;"FM:STAT ON" ! Turn FM modulation on
350 !
360 OUTPUT @Fgen;"*OPC?" ! Send "1" to output buffer when complete
370 ENTER @Fgen;Value ! Enter value
380 !
390 OFF INTR Hpib ! Disable interrupts
400 END
410 !
420 SUB Err_msg ! Error subprogram is called if errors occurred
430 DIM Message$[80] ! Dimension array for error
440 INTEGER Code ! Define integer variable
450 COM @Fgen ! Use same address as in main program
460 B=SPOLL(@Fgen) ! Use Serial Poll to read Status Byte
470 ! (all bits are cleared too)
480 !
490 ! Loop until error queue is cleared
500 !
510 REPEAT
520 OUTPUT @Fgen;"SYST:ERR?"
530 ENTER @Fgen;Code,Message$
540 PRINT Code,Message$
550 UNTIL Code=0
560 STOP
570 SUBEND
Chapter 6 Application Programs
Using the Status Registers
262

Table of Contents

Other manuals for Agilent Technologies 33120A

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies 33120A and is the answer not in the manual?

Agilent Technologies 33120A Specifications

General IconGeneral
BrandAgilent Technologies
Model33120A
CategoryInverter
LanguageEnglish

Related product manuals