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.

External Modulation External modulation input level status may be queried for high, low,<br />

Input Level Status or input level correct. The instrument automatically detects the input<br />

level (1 Vpk into 600 ohms for full scale modulation) and displays<br />

the result on the front panel display but must be queried for <strong>HP</strong>-IB<br />

reporting.<br />

2-14 <strong>HP</strong>-IB Programming<br />

Example: Check the Condition of Modulation Input<br />

(High or Low)<br />

18 I:IIJTPIJT 7 1’3; “STHT: t:!lJE!;: MI:ID: l:I:it.jD?”<br />

28 EtjTER 71’3; ‘+.s~I,J~<br />

38 pll:uj=B I t~~~~~~l 1:: ‘,:‘a 1 IAe g 1 ><br />

48 IF Mod= 1 THEH PR I tdT “Ext. . tk~cl. Input. Hi &I”<br />

!y@ Mod=BI tq+jD r:$!.=J1ue9 :::I<br />

68 IF Mod=? THEN F’RI NT “Ext. , Pltscl. Irlput. LI:~I.,~”<br />

78 Et.j[><br />

Line 10 Queries the condition of the MODulation register.<br />

Besides querying the condition you may also query<br />

if an event has occurred, su<strong>ch</strong> as the external<br />

modulation input being high or low at some previous<br />

time. Replace the COND? with EVEN? to read the<br />

event status. Reading the event status clears the<br />

register.<br />

Line 20<br />

Line 30<br />

Line 40<br />

Line 50<br />

Line 60<br />

Enters the condition of the MODulation register into<br />

the variable “Value”.<br />

Uses the <strong>HP</strong> BASIC command, BINAND to <strong>ch</strong>eck the<br />

contents of bit 0 in “Value”. If bit 0 is a “1” it will be<br />

reported as a decimal equivalent “ 1” and “Mod” will<br />

equal “ 1”.<br />

Checks if the MODulation condition is “ 1” and if true,<br />

prints that the external modulation input is high.<br />

Uses the <strong>HP</strong> BASIC command, BINAND to <strong>ch</strong>eck<br />

the contents of bit 1 in “Value”. If bit 1 (decimal<br />

equivalent “2”) is a “l”, “Mod” will equal “1”.<br />

Checks if the MODulation condition is “2” and if true,<br />

prints that the external modulation input is low.

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

Saved successfully!

Ooh no, something went wrong!