12.07.2015 Views

spec - Local Sector 7 web page

spec - Local Sector 7 web page

spec - Local Sector 7 web page

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

IntroductionThe standard macros included with the <strong>spec</strong> distribution are an integral part of the<strong>spec</strong> package. For some sites, the standard macros are sufficient for performingexperiments. For others, the standard macros provide a starting point for customdevelopment. This reference presents some of the standard macros, grouped by functionality.For many macros, the complete definition is printed. At the end of this reference,the construction of the scan macros is discussed in depth.The following files, found in the macros subdirectory of the distribution, contain thedefinitions for all the macros in the standard library. Ifitisnot obvious in which fileaparticular macro is stored, you can always change to the macros directory and typegrep macro_name * ,where grep is the standard UNIX file searching utility.File Contentscount.mac Counting macros ( ct , uct , count , show_cnts , ... ).cplot.mac The cplot_plot macro.energy.mac For an energy-selecting monochromator ( Escan , set_E , ... ).file.mac The newfile macro.getscan.mac The getscan macro.hkl.mac General reciprocal space macros ( br , mk , ca , wh , ... ).motor.mac Motor moving and status ( mv , umv , wa , set , set_lm , ... ).plot.mac Data plotting ( plot , plot_res , rplot , splot , ansiplot , ... ).powder.mac Powder-mode macros ( setpowder , _pmove and _pcount ).region.mac Macros to define a series of scans( setreg and doreg ).scans.mac Basic scan macros ( ascan , a2scan , hklscan , ... ).scans1.mac Scan helper macros ( _head , _loop , setscans , ... ).start.mac The startup macro.temper.mac Temperature control ( settemp , measuretemp , te , ... ).util.mac Misc. utility macros ( do , qdo , savmac , comment , u , help , ... ).fivec.srcfourc.srcsixc.src<strong>spec</strong>.srcsurf.srctwoc.srczaxis.srcFivec-circle geometry macros.Four-circle geometry macros.Sixc-circle geometry macros.Version for no diffractometer.Special liquid surface diffractometer macros.Two-circle geometry macros.Z-axis geometry macros.When installed, the .mac files above are combined into one file and placed (assumingthe default auxiliary file directory) in /usr/local/lib/<strong>spec</strong>.d/standard.mac. A fileformed from the first four letters of the geometry configuration contains the geometryINTERIM WORK-IN-PROGRESS (8/16/01) NOT FOR GENERAL DISTRIBUTION STANDARD MACRO GUIDE 123

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!