HP (Hewlett-Packard) 16501A Sander User Manual


 
Printing to the disk
This program prints acquired data to a disk file. The file can be either on a
LIF or DOS disk. If you print the file to a flexible disk in the DOS format, you
will be able to view the file on a DOS compatible computer using any number
of file utility programs.
10 ! ********* PRINTING TO A DISK FILE **********
20 !
30 !
40 ! This program prints the acquired data to a disk file on a floppy disk.
50 ! It will print to either a LIF or DOS file using the PRINT ALL command.
60 !
70 !****************************************************************
80 ! This program assumes a logic analyzer module
85 ! is installed in slot 1.
90 OUTPUT 707;":SELECT 1" ! Selects the module in slot 1. This program
100 ! assumes a logic analyzer module is installed
110 ! in slot 1.
115 !
120 OUTPUT 707;":MENU 1,7" ! Selects the Listing 1 menu. Print to disk
130 ! will only work in Listing and Disk menus.
140 !
150 OUTPUT 707;":SYSTEM:PRINT ALL, DISK, ’DISKFILE’, INTERNAL1"
160 !
170 !****************************************************************
180 ! Now display catalog to see that the file has been saved on the disk.
190 !
200 DIM File$[100]
210 DIM Specifier$[2]
220 OUTPUT 707;":EOI ON"
230 OUTPUT 707;":SYSTEM:HEADER OFF"
235 OUTPUT 707;":MMEMORY:MSI INTERNAL1"
240 OUTPUT 707;":MMEMORY:CATALOG? ALL"
250 ENTER 707 USING "#,2A";Specifier$
260 ENTER 707 USING "#,8D";Length
270 FOR I=1 TO Length STEP 70
280 ENTER 707 USING "#,70A";File$
290 PRINT File$
300 NEXT I
310 ENTER 707 USING "A";Specifier$
320 END
Programming Examples
Printing to the disk
15–12