next up previous contents index
Next: Variables Up: FIT2D V12.012 Reference Manual V6.0   ESRF98HA01T Previous: Further Questions


Appendix B: FIT2D Macro Language

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 directly from the the other, but it is possible to switch into the ``KEYBOARD'' interface from the GUI, and vice versa. 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 open68.

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. Send an e-mail if you encounter problems.)



Subsections
next up previous contents index
Next: Variables Up: FIT2D V12.012 Reference Manual V6.0   ESRF98HA01T Previous: Further Questions
Andrew Hammersley
2004-01-09