Agilent Technologies HP 16500B Manual page 209

Logic analysis system
Hide thumbs Also See for HP 16500B:
Table of Contents

Advertisement

Programming Examples
Reading the disk with the CATalog? ALL query
Reading the disk with the CATalog? ALL query
The following example program reads the catalog of the currently selected
disk drive. The CATALOG? ALL query returns the entire 70-character field.
Because DOS directory entries are 70 characters long, you should use the
CATALOG? ALL query with DOS disks.
10
!
20
!
30
!
40
DIM File$[100]
50
DIM Specifier$[2]
60
OUTPUT 707;":EOI ON"
70
OUTPUT 707;":SYSTEM:HEADER OFF"
80
OUTPUT 707;":MMEMORY:MSI INTERNAL0" ! select the hard drive
90
OUTPUT 707;":MMEMORY:CATALOG? ALL"
100
!
110
ENTER 707 USING "#,2A";Specifier$
120
ENTER 707 USING "#,8D";Length
130
!
140
! Read and print each file in the directory
150
!
160
FOR I=1 TO Length STEP 70
170
ENTER 707 USING "#,70A";File$
180
PRINT File$
190
NEXT I
200
ENTER 707 USING "A";Specifier$
210
END
13–10
Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com
****** DISK CATALOG ******
using the CATALOG? ALL query
! send CATALOG? ALL query
! read in #8
! read in block length
! read in final line feed

Advertisement

Table of Contents
loading

This manual is also suitable for:

Hp 16501a

Table of Contents