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.

# View (and modify), then reread configuration file.# Use -s flag if in simulate mode. Re-order motor numbers# with _assign. Check for monochromator mnemonics.def config ’wait(-1)user_waitallsyncunix(sprintf("%s/edconf %s %s/%s",\SPECD, set_sim(-1)? "-s":"", SPECD, SPEC))reconfiguser_config_assign_assign_mono’def user_config ’’# Turn simulate mode on. Comment on printer and file if changed.def onsim ’{local tif (!(t = set_sim(1))) { qcomment "Simulate mode ON" }printf("Simulate was %s, is now %s.\n", t? "on":"off",\set_sim(-1)? "ON":"OFF")}’# Turn simulate mode off.def offsim ’{local t}’if (t = set_sim(0)) { qcomment "Simulate mode OFF" }printf("Simulate was %s, is now %s.\n", t? "on":"off",\set_sim(-1)? "ON":"OFF")# Easy way to set the debug level.# +arg adds bits to DEBUG. -arg removes them.def debug ’{local t}’if ($# == 0) {gethelp("debug")t = input(sprintf("\nDebug value (%d)? ", DEBUG))} elset = "$*"if (index(t, "+")) DEBUG |= 0+telse if (index(t, "-")) DEBUG &= ˜(0-t)else DEBUG = 0+tINTERIM WORK-IN-PROGRESS (8/16/01) NOT FOR GENERAL DISTRIBUTION STANDARD MACRO GUIDE 129

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

Saved successfully!

Ooh no, something went wrong!