Measurement Computing Micro 488/EX rev.2.1 User Manual
Page 66
Section 4
General Programming
4.24
NUMBER
. This causes the interface to respond at the
conculsion of each command with an error number. Line
430
accepts the error number reported as a result of the
command in Line 420.
Lines 440-570
The main program loop. Requests a READ of all the
available macro buffers in the Micro488/EX. If a macro
does not exist, an error of 6, NO MACRO, is reported and
the program continues to the next macro buffer number.
Otherwise, a comment line is sent to the disk file along
with each command line of the macro. This continues until
an error code of 0, NO ERROR, is detected.
Lines 580-810
Gets the output file name from the user. If a file extension
is not specified, the extension 'MCR' is used. After the user
enters the file name, it tests to determine if the file already
exists by opening the file for input. If the file does not
exist, an error is generated and the program vectors to
Line 800. Line 810 causes the program to resume at the
Line 760 which opens the new output file.
The following shows a sample of a file that this program would
generate. Maintaining macros in this format is a convenient method of
editing and programming macros. Using this method, any text editor could
be used to program macros.
Macro File Example
*
* Macro Backup
* Micro488/EX Revision 1.0 Copyright 1988 (C) IOtech Inc.
* Friday July 29, 1988 12:35:04 PM
* This is a comment line
*
* Macro 4
Macro 4
Sterm None
Date
Comment ','
Time
Comment ','
Sterm CR
Enter 16
Endm04