Herunterladen Inhalt Inhalt Diese Seite drucken

Programming Hints - Tektronix DC 5010 Anleitung

Inhaltsverzeichnis

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

Operating Instructions-DC 501 0
PROGRAMMING HINTS
The purpose of this section of the manual is to show how
to program the DC 5010 to perform some basic measure-
ment functions and how to take advantage of some of its
special programming features.
The following examples are given in 4050-Series BASIC.
The implementation details vary from controller to controller.
Changing Input Channel Settings
Before a meaningful measurement can be made, the in-
put signal conditioning settings must be set properly. The
following example first sets up the Channel A input signal
conditioning. Next the trigger levels are automatically set to
their midpoints using the AUTO command and the AVE -1
command sets up the instrument to make measurements at
a rate of approximately 3 per second. Finally, the DC 501 0
is instructed to make frequency measurements.
I00 PRINT @20:I1CHA A;SLO P0S;TERH HI;"
110 PRINT B20:"COU
DCiATT 1;AUTO;"
120 PRINT L2O:"AVE
-1;FREQ;SEND;"
130 INPUT g20:R
140 PRINT "THE FREQUENCY IS "JR
150 END
Although the above example shows all the Channel A
input settings being programmed to the desired states, only
those-settings not already at the desired states need to be
programmed.
Making Time Interval Measurement
The following example sets up the instrument to measure
the time interval between two TTL level signals connected
to the Channel A and Channel B inputs using x 5 probes.
200 PRINT e20:"CHA
A;SLO POS;TERfl HI;"
210 PRINT e20:"ATT
1;COU 0C;LEV 0.275;"
220 PRINT Q20:"CHA
B;SLO POSrTERH HI;"
230 PRINT B20:"ATT
1 COU DC;LEV 0.275:"
240 PRINT P2O:"AVE
1;TIPIE;SEND;"
250
INPUT @20:T
260 PRINT
"TIRE A
TO
E
IS ";T
270
END
Making Single Measurements
Single measurements may be made using either of the
two methods shown in the following examples. To make a
single measurement, the instrument is first set to STOP
mode. A RESET then causes a single measurement to be
made and then the measurement process is again stopped.
The first example shows how to make a single TIME interval
measurement using STOP and RESET.
300
PRINT Q20:"AVE
I;TI#E;"
310
PRINT @20:"STOP;RESET;SEND;"
320 INPUT @20:R
330
PRINT "TIflE INTERVAL IS
";R
340 E N D
The next example shows how to use Group Execute
Trigger <GET>
in place of the RESET, to make single
measurements. To use <GET>,
the instrument's Device
Trigger Function must first be enabled using the DT TRIG
command. Again, the instrument must be set to STOP
mode before the <GET>
causes a RESET and a single
measurement to be made.
400 P R I N 7 e20:"DT
TR1G;AVE I;TIPlE;"'
4 1 0 PRINT B20:HSTOP;u
420
FOR
I = 1
TO
200
430 RER
ALLOW
T I f i E
FOR COUNTER TO
440
R E #
PROCESS PENDING SETTINGS
450 REM
BUFFER
460
NEXT
I
470
REPI
52
IS LIS1EN ADDR. 2 0 (32+20)
4 8 0 HEM
8 IS
(G.E.T.;;
IEEE-48s
490
WBYTE
@ 5 2 r
8:
SO0
PRINT @2U:"SEND;"
510
INPUT @20:R
5 2 0 PRINT "TIME INTERVAL IS
";I?
530
E N D
Reading Results
There are two basic ways of obtaining
measurement
data from the DC 5010. The first method shown below uses
the SEND command to request a measurement result from
the instrument. If a measurement result is available, the
DC 501 0 will respond immediately when "talkedn, otherwise
it will wait until a result is available before responding.
300
~ ~ Z U : ~ F R E Q ; ~
310
PRINT @20:"SEND;"
520 INPUT I220:A
330
FRXNT "FREQUENCY
IS
" ; A
340
END
Again, only those input channel settings not already at
the desired states would have to be programmed.

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis