Example: Check the Condition
of
Unspecified Power
Entry
10
I:IIATF'IlT
71'3;
18
Et.jTER
71'3:'t).al1~e
"STHT:
IS!I-IES:
FOW:
I~OHD?"
:::a
F'l:lI,.I-spelz=B
I
t.jHt.jD
1::
Ini'a
1
IJe
3
2
:I
48
IF
FI:II.,,I-~~~I:=~
THE14 PRIbjT
"Mmpl
it.ude
iunspecif
ied"
58
E
t.j[:l
Line
10
Queries the condition of the POWer register. Besides
querying the condition you may also query if
an
event has occurred. Replace the COND?
with
EVEN?
to read the event status. Reading the event status
clears the register.
Enters the condition
of
the POWer register into the
variable "Value".
Uses the
HP
Basic command, BINAND to check
the contents of
bit
1
in "Value".
If
bit
1
is "high",
Pow-spec will equal
"2".
Line
20
Line
30
Line
40
Checks if Pow-spec equals
2
and then prints that the
amplitude is in
an
unspecified range.
2-12
HP-IB Programming