6- 38
Sample Programs
init.bas Sample Program
290
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!
300 !
310 !
320 ! BEGIN SUBPROGRAMS
330 !
340
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!
350 !
360 !
370 ! Subprogram name: Initialize
380 ! Parameters: none
390 ! Return value: none
400 ! Description: This routine initializes the interface and the
oscilloscope. The instrument
410 ! is reset to a known state and the interface is cleared. System headers
420 ! are turned off to allow faster throughput and immediate access to the
430 ! data values requested by the queries. The oscilloscope time base,
440 ! channel, and trigger subsystems are then configured. Finally, the
450 ! acquisition subsystem is initialized.
460 !
470 !
480 SUB Initialize
490 COM /Io/@Scope,@Path,Interface
500 COM /Variables/ REAL Xinc,Xorg,Yinc,Yorg
510 COM /Variables/ INTEGER Record_length
520 Interface=7
530 ASSIGN @Scope TO 707
540 RESET Interface
550 CLEAR @Scope
560 OUTPUT @Scope;"*RST"
570 OUTPUT @Scope;"*CLS"
580 OUTPUT @Scope;":SYSTem:HEADer OFF"
590 !Initialize Timebase: center reference, 2 ms full-scale (200 us/div),
20 us delay
600 OUTPUT @Scope;":TIMebase:REFerence CENTer;RANGe 2e-3;POSition 20e-6"
610 ! Initialize Channel1: 1.6V full-scale (200mv/div), -415mv offset
620 OUTPUT @Scope;":CHANnel1:RANGe 1.6;OFFSet -415e-3"
630 !Initialize Trigger: Edge trigger, channel1 source at -415mv
640 OUTPUT @Scope;":TRIGger:EDGE:SOURce CHANnel1;SLOPe POSitive"
650 OUTPUT @Scope;":TRIGger:LEVel CHANnel1,-0.415"
660 ! Initialize acquisition subsystem
665 ! Real time acquisition, Averaging off, memory depth 4096
670 OUTPUT @Scope;":ACQuire:MODE RTIMe;AVERage OFF;POINts 4096"
680 Record_length=4096
690 SUBEND
Summary of Contents for Infiniium 8000A
Page 1: ...Agilent Technologies Infiniium 8000A Programmer s Reference ...
Page 2: ......
Page 20: ...Contents 16 ...
Page 21: ...1 Introduction to Programming ...
Page 43: ...2 LAN and GPIB Interfaces ...
Page 53: ...3 Message Communication and System Functions ...
Page 58: ...3 6 ...
Page 59: ...4 Status Reporting ...
Page 78: ...4 20 Figure 4 3 Status Reporting Decision Chart ...
Page 79: ...5 Programming Conventions ...
Page 84: ...5 6 Programming Conventions The Command Tree Figure 5 1 Command Tree ...
Page 85: ...5 7 Programming Conventions The Command Tree Figure 5 2 Command Tree Continued ...
Page 86: ...5 8 Programming Conventions The Command Tree Figure 5 3 Command Tree Continued ...
Page 87: ...5 9 Programming Conventions The Command Tree Figure 5 4 Command Tree Continued ...
Page 88: ...5 10 Programming Conventions The Command Tree Figure 5 5 Command Tree Continued ...
Page 89: ...5 11 Programming Conventions The Command Tree Figure 5 6 Command Tree Continued ...
Page 94: ...5 16 ...
Page 95: ...6 Sample Programs ...
Page 149: ...7 Acquire Commands ...
Page 176: ...7 28 Acquire Commands SRATe AUTO ...
Page 177: ...8 Bus Commands ...
Page 187: ...9 Calibration Commands ...
Page 195: ...10 Channel Commands ...
Page 223: ...11 Common Commands ...
Page 247: ...12 Digital Commands ...
Page 254: ...12 8 ...
Page 255: ...13 Disk Commands ...
Page 300: ...13 46 Disk Commands STORe Obsolete ...
Page 301: ...14 Display Commands ...
Page 322: ...14 22 ...
Page 323: ...15 External Trigger Commands ...
Page 343: ...16 Function Commands ...
Page 382: ...16 40 ...
Page 383: ...17 Hardcopy Commands ...
Page 391: ...18 Histogram Commands ...
Page 403: ...19 InfiniiScan ISCan Commands ...
Page 421: ...20 Limit Test Commands ...
Page 429: ...21 Marker Commands ...
Page 452: ...21 24 ...
Page 453: ...22 Mask Test Commands ...
Page 499: ...23 Measure Commands ...
Page 636: ...23 138 Measure Commands VUPPer ...
Page 637: ...24 Pod Commands ...
Page 642: ...24 6 ...
Page 643: ...25 Root Level Commands ...
Page 645: ...25 3 STORe SETup STORe WAVeform TER Trigger Event Register VIEW ...
Page 674: ...25 32 ...
Page 675: ...26 Self Test Commands ...
Page 679: ...27 System Commands ...
Page 694: ...27 16 ...
Page 695: ...28 Time Base Commands ...
Page 708: ...28 14 ...
Page 709: ...29 Trigger Commands ...
Page 822: ...29 114 ...
Page 823: ...30 Waveform Commands ...
Page 893: ...31 Waveform Memory Commands ...
Page 902: ...31 10 ...
Page 903: ...32 Error Messages ...
Page 914: ...32 12 ...