20.08.2013 Views

HP 8648 A/B/C/D - Changpuak.ch

HP 8648 A/B/C/D - Changpuak.ch

HP 8648 A/B/C/D - Changpuak.ch

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Programming<br />

Examples<br />

Examples are provided here to help you understand the required<br />

programming structure. All examples use the <strong>HP</strong> BASIC programming<br />

language. See ‘Ihble 2-l for a complete listing of commands.<br />

Note Command statements may be concatenated on the same line if<br />

separated by a semicolon. A colon must precede successive command<br />

statements to ensure command hierar<strong>ch</strong>y.<br />

Programming RF I:II~ITF’IJ- 7 19; FREQ: ” i:W 588 MHZ”<br />

Frequency OUTPUT<br />

7<br />

19<br />

Semicolon (;)<br />

Quotes (“ “)<br />

FREQ:CW<br />

The output statement (<strong>HP</strong> BASIC) tells the system<br />

controller to output what follows.<br />

The Input/Output select code of the system controller<br />

is 7.<br />

The <strong>HP</strong>-IB address of the signal generator is 19.<br />

A semicolon separates the <strong>HP</strong> BASIC command from<br />

the output string that follows.<br />

All command statements must be contained in quotes.<br />

This command programs the RF frequency. FREQ<br />

must be in the statement first representing its<br />

hierar<strong>ch</strong>y over :CW. The colon (:) is used to separate<br />

the command hierar<strong>ch</strong>y. The signal generator will be<br />

programmed to a RF frequency of 500 MHz.<br />

Programming RF OUTF’IJT 71’3 j “FREQ: ClJ 588 PlHZ; : Ftq: [)E’:r :s t:::HZ; : FM: :~~:il-lF:<br />

E.cT FPl: ExT: IJ:IIJ= HI:?<br />

Frequency and FM 1: ; :<br />

1:lt.j ”<br />

Modulation<br />

:I - ’ ’ : HM: !sTflT OFF; : PM: !STHT OFF; : FM: !$J-HT<br />

FM:DEV This command programs the FM deviation. FM is<br />

higher than DEV in the command hierar<strong>ch</strong>y and is<br />

separated by a colon (:). The signal generator will<br />

be programmed to 3 kHz of deviation.<br />

Semicolon (;) A semicolon separates completed command<br />

statements.<br />

FM: SOUR: EXT This command selects the external path for the<br />

modulation source.<br />

FM:EXT:COUP AC This command selects ac coupling.<br />

FM:STAT ON This command <strong>ch</strong>anges the FM modulation to an<br />

on state. A modulation format must be turned<br />

on before it is active. The other two modulation<br />

formats must be turned off prior to activating the<br />

desired modulation (AM:STAT OFF and<br />

PM: STAT OFF).<br />

<strong>HP</strong>-IB Programming 2-3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!