
Programming
Examples
468
!
469
FOR
I=1
TO
SIZE(Form1_data,1)
470
Exponent=BINAND(Form1_data(I,2),255)
!
bits
0-7
are
the
exponent
471
!
472
IF
Exponent<128
THEN
!
exponent
is
positive
473
Exponent=2^(Exponent-15)
!
offset
(-15)
474
!
475
ELSE
!
exponent
is
negative
476
Exponent=2^(BINCMP(BINEOR(Exponent,255))-15)
!
reverse
[EOR],
477
!
change
sign
[CMP]
and
offset
[-15]
for
negative
going
exponents
478
END
IF
479
!
480
!
Calculate
real
and
imaginary
data
481
Real=Form1_data(I,1)*Exponent
482
Imag=Form1_data(I,0)*Exponent
483
!
484
!
Calculate
linear
magnitude
data
485
Lin_mag=SQRT(Real^2+Imag^2)
486
!
487
!
Calculate
log
magnitude
data
488
Log_mag=20*LGT(Lin_mag)
489
!
490
!
Calculate
phase
data
491
DEG
492
IF
Imag=0
AND
Real<0
THEN
493
Phase=-180
494
ELSE
495
Phase=2*ATN(Imag/(Real+Lin_mag))
496
END
IF
497
!
498
IF
I=1
OR
I=SIZE(Form1_data,1)
THEN
!
first
and
last
points
499
"Pt";I;"
Real
=
";Real;"
Imag
=
";Imag
500
"
Lin
=
";Lin_mag;"
Log
=
";Log_mag;"
Phase
=
";Phase
501
502
END
IF
503
NEXT
I
504
!
505
REDIM
Form1_data(0:2,1:201)
506
!
507
508
LOCAL
@Nwa
509
RETURN
510
!
511
Example8:
!
S11
1-PORT
AND
S21
RESPONSE
CALIBRATIONS
******
512
513
"Example
8,
S11
1-Port
and
S21
Response
Calibrations"
514
!
515
OUTPUT
@Nwa;"PRES;
MENUCAL;"
516
LINPUT
"Which
Cal
Kit
is
being
used
(ENTER
1
or
2)?",Kit$
517
"S11
1-Port
Measurement
Calibration
USING
Cal
";Kit$
518
OUTPUT
@Nwa;"CLES;
CAL";Kit$;";
CALIS111;"
519
!
520
LINPUT
"Port
1,
Connect
Shielded
Open,
then
press
Return",Input$
521
OUTPUT
@Nwa;"CLASS11A;"
522
GOSUB
Wait_for_meas
523
!
(Shielded
Open
Circuit
Data
Measured)
524
LINPUT
"Port
1,
Connect
Short,
then
press
Return",Input$
GPIB
Programming
13-49
Содержание 8510C
Страница 7: ...vii ...
Страница 29: ......
Страница 61: ......
Страница 73: ...Network Analyzer System Description Figure 3 7 Recommended Typical Test Setups 3 12 Principles of Operation ...
Страница 98: ...DISPLAY Functions Figure 4 9 Display Menu Showing Trace Memory Locations Menu Measurement Controls 4 19 ...
Страница 105: ...FORMAT Functions Figure 4 12 Format Function Block and Format Menu 4 26 Measurement Controls ...
Страница 106: ...FORMAT Functions Figure 4 13 Format Selections 1 of 2 Measurement Controls 4 27 ...
Страница 107: ...FORMAT Functions Figure 4 14 Format Selections 2 of 2 4 28 Measurement Controls ...
Страница 122: ...PARAMETER Functions Figure 4 25 Redefine Parameter Menu Structure Measurement Controls 4 43 ...
Страница 175: ......
Страница 203: ......
Страница 223: ...Measurement Calibration Figure 8 2 Cal Type Selections 8 8 Calibrating for System Measurements ...
Страница 267: ...Figure 9 14 Typical Group Delay and Deviation from Ideal Phase Displays 9 14 Transmission Measurements ...
Страница 273: ......
Страница 297: ......
Страница 305: ......
Страница 391: ......