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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

(See <strong>page</strong> 52 in the Reference Manual to see how to start <strong>spec</strong> with a state fromanother user or terminal.)<strong>spec</strong> is built around an interpreter that has a C-like syntax and recognizes over ahundred built-in commands and function names. However, you will typically beinvoking the standard macros. These macros are written to do <strong>spec</strong>ific jobs using thebuilt-in commands and functions and require minimum keyboard input. If you justwant to move motors, count photons and do scans, you will only have to learn the fewstandard macros presented in this Beginner ’sGuide.Using the Printer and Data FilesThe standard macros in <strong>spec</strong> are designed to keep records of the experiment inprogress on a printer and in a data file, although neither is required. The startupmacro will prompt for a printer and a data file, along with asking for many otherparameters and options. For now, enter information just for the printer and data fileand accept the current values for the other parameters.1.FOURC> startupEnter for no change in the displayed parameters.The names of start-up macros that can be invoked separatelyare shown in parenthesis above a set of queries.Type ˆC to return to command level without finishing.(Interrupting one of the <strong>spec</strong>ialized start-up macros willlikely undo any changes entered for its associated parameters.)(newsample)Title for scan headers (fourc)? cu 110(newfile)Data file (/dev/null)? cu110/94_01_31.aUsing "cu110/94_01_31.a". Next scan is number 1.Last scan # (0)? Use a printer for scan output (NO)? yPrinter device (/dev/null)? /dev/lp(And so on ...)2.FOURC>When prompting for input, <strong>spec</strong> generally displays the default or current response inparentheses. Simply hitting makes that selection.Youcan use the newfile macro directly to open (or reopen) a data file. Usage isnewfile [ filename [ scan_number ]]. (As is the convention in this manual, thesquare brackets indicate optional arguments, and the Courier Oblique typeface6 USER MANUAL AND TUTORIALS INTERIM WORK-IN-PROGRESS (8/16/01) NOT FOR GENERAL DISTRIBUTION

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

Saved successfully!

Ooh no, something went wrong!