EasyManua.ls Logo

HP 5335A - Page 63

HP 5335A
76 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
Loading...
Operation
and
Programming
EXAMPLE
6.
MATH
PROGRAMMING
EXAMPLE
To
demonstrate
the
5335A
flexibility
in
mathematical
manipulations,
apply
a
signal
to
INPUT
A
of
different
frequencies.
Step
2
will
request
the
Offset,
Normalize,
and
Scale
factors
which
are
used
to
program
the
5335A
in
step
3.
The
manipulated
measurement
is
read
into
string
variable
A
(step
4).
Steps
5
through
10
will
print
the
Offset,
Normalize,
and
Scale
factors,
respectively;
steps
11
and
12
will
print
the
final
result.
9825A
EXAMPLE
0
:
d
:i.
m
A
$
[
2
.1
1
.1.
=
fxd
0
£:
ent
“OF
FBFT
?
"
>
0
,
“NORMALIZE
?
%
N
>
"SCALE
?
"
,
S
3
:
w
r
t
7
0
3
,
"
i
n
,
m
o
11
,
0
,
"
n
n
%
N
>
n
s
,
S
4-
red
7
0
3
,
A
$
S:
prt
"OFFSET”"
>
0
6
■■
spc
7
:
prt
“NORMALIZE*">
N
8
;
spc
9:
prt
"SCALE-"
?
S
10:
SpC
2.
11:
wrt
18
>
"RESULT""
1
:
w
r
t
16
>
A
$
i:
1,1.
:i
f.
A
$
l
5,
1
9
I
13;
end
*83419
9825A
PRINTED
RESULTS:
9835A
EXAMPLE
io
dim
aii>
i:
21
:i
20
FIXED
0
30
INPUT
“OFFSET
?",0
4
0
IN
P
U
f
"
N
0
R
M
A
LI7.
F
?
"
,
N
SO
INPUT
"SCALE
?"
6
0
0U
T
P
U
T
7
0
3
>
"
i
n
m
o
"
\
0
>
m
n
s
"
;
S
7
0
ENTER
703;A$
80
PRINT
"OFF'SET--
1
1
,
0
90
PRINT
LIN(l)
100
PRIN
T
“NORMALIZE*
3
'
*
,
N
110
PRINT
I..
1N
(1
)
120
PRINT
"SCALE
"
t
S
130
PRINT
L.INC2)
14
0
OUTP
UT
16
j
RE8ULT
"
>
AT
[1,1
'.I
,
A$
I'S
,
19
ii
150
END
3-47
Model
5335A

Related product manuals