Herunterladen Inhalt Inhalt Diese Seite drucken

Duty Cycle Measurement - Tektronix DC 5010 Anleitung

Inhaltsverzeichnis

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

Operating Instructions-DC
501 0
Using INST ID Button
Communication between the controller and an instru-
ment operator can be accomplished using the INST ID but-
ton and the USER command. The following example allows
a front panel operator to compensate probes and then in-
form the controller that the Probecomp is complete. As
shown, the probes can be compensated and the INST ID
button used even while the rest of the front panel controls
are locked out.
1 R E # { U S I N G
THE I N S ' l ' I D BUTTON3
1 0 0 O R I N T "COMPENSATE 1:'ROBES
-
' I ;
1 1 0 P R I N T "F'USH I N S T I D BUTTON " ;
1 2 0 P R I N T "WHEN DONE."
1 3 0 1 - 0
1 4 0 Y R I N 7 @ 2 0 : "USER ON;PROBE;
"
150 REM
GIz'L'
"LLO"
I S 1 7
1 6 0 WFIYTE @ 1 7 :
1 7 0 ON
SKQ
T H E N
3(10
1 8 0 W A I I
1913 I F I = 0 THEN 180
2 0 1 1
F'F;INI'
g 2 0 : n I N I T ; u
2 1 0 P R I N T "COMPENSATION DONE."
2 2 0 END
3 0 0
P O L L
D r S ; 2 0
3 1 0 I F S = 6 7 OR S = 9 3 THEN 3 4 0
3 2 0 P R I N T "SRQ OCCUREDr STATUS =
" ' r
l a
3 3 0
GO TO 3 6 0
3 4 0 F'RINT " I N S T
I D E?*UTTON SENSED."
35u 1 = 1
3 6 0 HEIIURN
The INST ID button can also be used to inform the con-
troller that the instrument has been set up properly to mea-
sure the input signals. Once informed, the controller can
then "learnn the current instrument settings, using the SET?
query command, and save the setup for later use.
8 0 0 KEM
LEARN S E T T I N G S
8 1 U P R I N T " S E T UB THE INSTRUMENT
--
";
8 2 0 PFiINT "PUSH I N S T I D WHEN DONE."
G X I
o m
A
S
~
W
8 4 0 I = U
8 5 0 PRJ.N7
@ 2 0 : " U S E R
ON;''
8 6 0 ON
SRQ
THEN 9 4 0
8 7 0 WAIT
a s 0 I F
r=o
THEN 8 7 0
1 3 0 F'RINT @ 2 0 : " S E T ? ; "
9 0 0 I N P U T @ 2 0 : A $
9 1 0 P R I N I "STORED S E T T I N G S ARE:
" ; A $
9 2 0 P R I N T 1220:"USER
OF'F;"
9 3 0 END
9 4 0 P O L L D r S i 2 C I
3 5 0 I F S = 6 7 OR
S = Y 3
THEN 9 8 0
9 6 0 P R I N T "SRU O C C U R E O ~ STATUS =
" i s
5'70
G O
TO ?YO
98U I = 1
9 9 0 R E T U R N
Duty Cycle Measurement
Duty Cycle measurements can easily be rnade using a
combination of Width and Period measurements. The fol-
lowing example determines the Duty Cycle of the positive
going pulse of the Input signal. This example assumes the
trigger level is already set to the desired value.
4 0 0 REM
DUTY CYCLE MEASUREMENT
4 1 0 P K I N T B20:"CHA
A;SLO
PUS;"
4 2 0 P R I N T I ? ~ ~ : ~ W I D ; S E N D ; "
4 3 0 I N P U T l220:W
4 4 0 F'RINT @ZO:"PER;SEND;"
4 5 0 I N P U T 1220:P
4 6 0 D-W/P
4 7 0 P K I N T "THE DUTY CYCLE I S " i D
4 8 0 END
Phase Measurement
A combination of Period and Time measurements can be
used to make Phase measurements. The following example
determines the phase difference between the Channel A and
Channel B signals by first measuring the Period of one sig-
nal and then using the Time function to measure the time
difference between the two signals. The phase angle is then
computed using these two measurements. This example as-
sumes that the appropriate signals are connected to input
channels A and B and assumes that the trig!ger levels are
set correctly.
-
-

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis