Programming Examples

Printing to the disk

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.

90OUTPUT 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

!

150OUTPUT 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!

200DIM File$[100]

210DIM Specifier$[2]

220OUTPUT 707;":EOI ON"

230OUTPUT 707;":SYSTEM:HEADER OFF"

235OUTPUT 707;":MMEMORY:MSI INTERNAL1"

240OUTPUT 707;":MMEMORY:CATALOG? ALL"

250ENTER 707 USING "#,2A";Specifier$

260ENTER 707 USING "#,8D";Length

270FOR I=1 TO Length STEP 70

280ENTER 707 USING "#,70A";File$

290PRINT File$

300NEXT I

310ENTER 707 USING "A";Specifier$

320END

15–12