Next: Variables
Up: FIT2D V10.3 Reference Manual V4.0 ESRF98HA01T
Previous: Further Questions
Macros can be defined within the GUI MACROS / LOG FILE interface of within the ``KEYBOARD'' interface using the START MACRO and STOP MACRO commands. However, a macro defined in one, cannot be used from the the other. A previously defined ``KEYBOARD'' macro can be run using the RUN MACRO or MACRO commands. A previously defined GUI macro can be run using the GUI RUN MACRO command.
Once defined appropriately a ``KEYBOARD'' macro can be run on a whole
sequence of files using the
SEQUENCE
command (See Section 15.90, Page ).
A GUI macro can similarly be run on a file series by using the
RUN SEQUENCE command.
Whilst defining a macro it is possible to call another macro. The
contents of the old macro are included within the new macro.
By previously defining variables, and using them within macros, macros can
be ``parameterised'' in a primitive manner. Great care must be taken
within macros, with commands which can change their input demands
e.g. PRINT GRAPHICS may or may not prompt for the name of an output
file, depending on whether or not an output file is already open.
The macro files are ASCII files, so it is possible to modify the macros, but great care is necessary.
(At present FIT2D is under development, and modifications to the user interface are likely owing to user suggestions. If new user inputs are demanded old macro files may need to be modified. Contact a member of the Experiments Division Programming Group if you encounter problems.)
Andy Hammersley