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.

Line 50 Clears all status registers. Clearing the status registers<br />

is not absolutely necessary, but is used here because<br />

of the unknown state of the instrument.<br />

Example: Check the start of ea<strong>ch</strong> frame<br />

18 IjlJTPlJT 719; “!3THT : I;!IJE!:; : PHI;: ENHE: 1 ”<br />

2’8 [IIJ-~-PIJT 71’3; “:sTAT: QIJE!~: Et,jHB ~@SI$,”<br />

:3@ rJlJTPlJT 71’3; “s!;RE :3”<br />

48 IF SF’OLL C71’3> THEt.4 PRINT “Encodir~q 1:1:1!mp1 &.e. ”<br />

58 I:IIJTPIJT 71 ‘3; “w:L:;”<br />

E.8 Et.j[><br />

Line 10 Enables bit 0 (decimal equivalent 1) in the PAGing<br />

register. Enabling this bit masks other bits in the<br />

PAGing register from reporting their status in the<br />

summary bit to QUEStionable.<br />

Line 20 Enables bit 12 (decimal equivalent 4096) in the<br />

QUEStionable register. Enabling this bit masks other<br />

bits in the QUEStionable register from reporting their<br />

status in the summary bit to STATUS.<br />

Line 30 Enables bit 3 (decimal equivalent 8) of the STATUS<br />

register. Enabling this bit masks other bits from<br />

reporting.<br />

Line 40 Uses the <strong>HP</strong> BASIC command, SPOLL, (Serial Poll)<br />

to see if the service request bit is reporting any<br />

interrupts.<br />

Line 50 Clears all status registers. Clearing the status registers<br />

is not absolutely necessary, but is used here because<br />

of the unknown state of the instrument.<br />

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

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

Saved successfully!

Ooh no, something went wrong!