
2-37
Sample Programs
BASIC Programming Examples
30 !THIS PROGRAM WILL INITIALIZE THE SCOPE, AUTOSCALE, AND DIGITIZE THE WAVEFORM
40 !INFORMATION. IT WILL THEN QUERY THE INSTRUMENT FOR THE LEARNSTRING AND WILL
50 !SAVE THE INFORMATION TO A FILE. THE PROGRAM WILL THEN PROMPT YOU TO CHANGE
60 !THE SETUP THEN RESTORE THE ORIGINAL LEARNSTRING CONFIGURATION. IT ASSUMES
70 !AN Agilent 86100 at ADDRESS 7, GPIB INTERFACE at 7, AND THE CAL SIGNAL ATTACHED TO
80 !CHANNEL 1.
90 !
100 !
110 COM /Io/@Scope,@Path,Interface
120 COM /Variables/Max_length
130 CALL Initialize
140 CALL Store_lrnstr
150 CALL Change_setup
160 CALL Get_lrnstr
170 CALL Close
180 END
190 !
200 !
210 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
220 !
230 ! BEGIN SUBROUTINES
240 !
250 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
260 ! Subprogram name: Initialize
270 ! Parameters: none
280 ! Return value: none
290 ! Description: This routine initializes the path descriptions and resets the
300 ! interface and the scope. It performs an autoscale on the signal,
310 ! acquires the data on channel 1, and turns on the display.
320 ! NOTE: This routine also turns on system headers. This allows the
330 ! string ":SYSTEM:SETUP " to be returned with the learnstring so the
340 ! return string is in the proper format.
350 !
360 SUB Initialize
370 COM /Io/@Scope,@Path,Interface
380 COM /Variables/Max_length
390 Max_length=14000
400 ASSIGN @Scope TO 707
410 Interface=7
420 RESET Interface
430 CLEAR @Scope
440 OUTPUT @Scope;"*RST"
450 OUTPUT @Scope;"*CLS"
460 OUTPUT @Scope;":SYSTem:HEADer ON"
470 OUTPUT @Scope;":AUToscale"
480 SUBEND
490 !
500 !
510 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
520 !
530 !
540 ! Subprogram name: Store_lrnstr
550 ! Parameters: none
560 ! Return value: none
570 ! Description: This routine creates a file in which to store the learnstring
580 ! configuration (Filename:Lrn_strg). It requests the learnstring
Summary of Contents for 86100A
Page 18: ...1 14 Introduction Status Reporting Figure 1 4 Status Reporting Data Structures...
Page 19: ...1 15 Introduction Status Reporting Status Reporting Data Structures continued...
Page 94: ...2 40 Sample Programs BASIC Programming Examples...
Page 124: ...4 16 Root Level Commands VIEW...
Page 132: ...5 8 System Commands TIME...
Page 140: ...6 8 Acquire Commands SWAVeform RESet...
Page 152: ...7 12 Calibration Commands STATus...
Page 192: ...11 12 Display Commands SSAVer...
Page 202: ...12 10 Function Commands VERTical RANGe...
Page 203: ...13 AREA 13 2 DPRinter 13 2 FACTors 13 3 IMAGe 13 3 PRINters 13 4 Hardcopy Commands...
Page 316: ...21 12 TDR TDT Commands Rev A 05 00 and Below STIMulus...
Page 332: ......