1- 16
Introduction to Programming
Example Program using HP Basic
Example Program using HP Basic
This program demonstrates the basic command structure used to program the
oscilloscope.
10 CLEAR 707! Initialize oscilloscope interface
20 OUTPUT 707;"*RST"!Initialize oscilloscope to preset state
30 OUTPUT 707;":TIMEBASE:RANGE 5E-4"! Time base to 500 us full scale
40 OUTPUT 707;":TIMEBASE:DELAY 0"! Delay to zero
50 OUTPUT 707;":TIMEBASE:REFERENCE CENTER"! Display reference at center
60 OUTPUT 707;":CHANNEL1:PROBE 10"! Probe attenuation to 10:1
70 OUTPUT 707;":CHANNEL1:RANGE 1.6"! Vertical range to 1.6 V full scale
80 OUTPUT 707;":CHANNEL1:OFFSET -.4"! Offset to -0.4
90 OUTPUT 707;":CHANNEL1:INPUT DC"! Coupling to DC
100 OUTPUT 707;":TRIGGER:MODE EDGE"! Edge triggering
110 OUTPUT 707;":TRIGGER:LEVEL CHAN1,-.4"! Trigger level to -0.4
120 OUTPUT 707;":TRIGGER:SLOPE POSITIVE"! Trigger on positive slope
125 OUTPUT 707;":SYSTEM:HEADER OFF<terminator>
130 OUTPUT 707;":ACQUIRE:MODE RTIME"! Normal acquisition
140 OUTPUT 707;":DISPLAY:GRATICULE FRAME"! Grid off
150 END
Overview of the Program
• Line 10 initializes the oscilloscope interface to a known state.
• Line 20 initializes the oscilloscope to a preset state.
• Lines 30 through 50 set the time base, the horizontal time at 500
µ
s full scale,
and 0 s of delay referenced at the center of the graticule.
• Lines 60 through 90 set 10:1 probe attenuation, set the vertical range to
1.6 volts full scale, center screen at
−
0.4 volts, and select DC 1 Mohm
impedance coupling.
• Lines 100 through 120 configure the oscilloscope to trigger at
−
0.4 volts with
positive edge triggering.
• Line 125 turns system headers off.
• Line 130 configures the oscilloscope for real time acquisition.
• Line 140 turns the grid off.
Содержание Infiniium 8000A
Страница 1: ...Agilent Technologies Infiniium 8000A Programmer s Reference ...
Страница 2: ......
Страница 20: ...Contents 16 ...
Страница 21: ...1 Introduction to Programming ...
Страница 43: ...2 LAN and GPIB Interfaces ...
Страница 53: ...3 Message Communication and System Functions ...
Страница 58: ...3 6 ...
Страница 59: ...4 Status Reporting ...
Страница 64: ...4 6 Status Reporting Status Reporting Data Structures Figure 4 2 Status Reporting Data Structures ...
Страница 78: ...4 20 Figure 4 3 Status Reporting Decision Chart ...
Страница 79: ...5 Programming Conventions ...
Страница 84: ...5 6 Programming Conventions The Command Tree Figure 5 1 Command Tree ...
Страница 85: ...5 7 Programming Conventions The Command Tree Figure 5 2 Command Tree Continued ...
Страница 86: ...5 8 Programming Conventions The Command Tree Figure 5 3 Command Tree Continued ...
Страница 87: ...5 9 Programming Conventions The Command Tree Figure 5 4 Command Tree Continued ...
Страница 88: ...5 10 Programming Conventions The Command Tree Figure 5 5 Command Tree Continued ...
Страница 89: ...5 11 Programming Conventions The Command Tree Figure 5 6 Command Tree Continued ...
Страница 94: ...5 16 ...
Страница 95: ...6 Sample Programs ...
Страница 149: ...7 Acquire Commands ...
Страница 176: ...7 28 Acquire Commands SRATe AUTO ...
Страница 177: ...8 Bus Commands ...
Страница 187: ...9 Calibration Commands ...
Страница 195: ...10 Channel Commands ...
Страница 223: ...11 Common Commands ...
Страница 247: ...12 Digital Commands ...
Страница 254: ...12 8 ...
Страница 255: ...13 Disk Commands ...
Страница 300: ...13 46 Disk Commands STORe Obsolete ...
Страница 301: ...14 Display Commands ...
Страница 322: ...14 22 ...
Страница 323: ...15 External Trigger Commands ...
Страница 343: ...16 Function Commands ...
Страница 382: ...16 40 ...
Страница 383: ...17 Hardcopy Commands ...
Страница 391: ...18 Histogram Commands ...
Страница 403: ...19 InfiniiScan ISCan Commands ...
Страница 421: ...20 Limit Test Commands ...
Страница 429: ...21 Marker Commands ...
Страница 452: ...21 24 ...
Страница 453: ...22 Mask Test Commands ...
Страница 499: ...23 Measure Commands ...
Страница 636: ...23 138 Measure Commands VUPPer ...
Страница 637: ...24 Pod Commands ...
Страница 642: ...24 6 ...
Страница 643: ...25 Root Level Commands ...
Страница 645: ...25 3 STORe SETup STORe WAVeform TER Trigger Event Register VIEW ...
Страница 674: ...25 32 ...
Страница 675: ...26 Self Test Commands ...
Страница 679: ...27 System Commands ...
Страница 694: ...27 16 ...
Страница 695: ...28 Time Base Commands ...
Страница 708: ...28 14 ...
Страница 709: ...29 Trigger Commands ...
Страница 822: ...29 114 ...
Страница 823: ...30 Waveform Commands ...
Страница 893: ...31 Waveform Memory Commands ...
Страница 902: ...31 10 ...
Страница 903: ...32 Error Messages ...
Страница 914: ...32 12 ...