SPEC- ID4B¶
Welcome to ID4B SPEC command¶
SPEC Detailed Descriptions
For full documentation visit certif.com. In ID4B, we used several SPEC along with python and C written by Dr. Jacob Ruff.
"spec is internationally recognized as the leading software for instrument control and data acquisition in X-ray diffraction experiments."
Few important commands are shown below.
SPEC Commands for ID4B
More detaiils can be found in SPEC manual and ID4B-SPEC Examples.
Important SPEC commands¶
mkdir
- Create a new directotry.a2scan
- two-motor scan.abscan
- incident-reflected angle scan.br
- br and ubr - move to the reciprocal space coordinates (HKL).ca
- calculate motor settings for a given point in reciprocal spacecal
- calculate motor settings for a given point in reciprocal spacecat
- UNIX shell cat commandcd
- change working directorycmAX
- Compumotor AX motor controllerconfig
- edit the hardware configurationconfig_adm
- configuration - administer hardware configuration fileconstant
- define a constant global symbolcounting
- timer/scaler commands, macros and variablescscan
- Continuous Scansct
- count and print resultsdscan/lup
- motor scan relative to the starting positiond2scan
- two-motor scan relative to the starting positionsdef
- def and rdef - define a macrodisable
- disable and enable - Disable and Enable Hardwaredo
- execute a command filedtscan
- relative temperature scandxp
- XIA DXP CAMAC MCAencode
- encode()/decode() - data stream manipulationepics
- EPICS specific functionsfiles
- conventions for file/device outputflow
- flow controlflyscan
- Continuous Scans with Multichannel Scalersfourc
- 4-circle geometry modesfuncs
- functions - built-in functionsglobal
- declare global variablesgetE
- get the energygetroi
- get the region of interesthbeamscan
- Horizontal direction beam scan based on start, finish, interval and time arrgumentshistory
- command recall facilityhklscan
- general linear scan in reciprocal spacehscan
- scan along the H-axis in reciprocal spaceinstall
- spec installation procedurel
- UNIX file listinglibedit
- libedit/readline - command line recall and editinglm
- list motor software limitsls
- UNIX file listinglscan
- scan along the L-axis in reciprocal spacelup chi
- motor 'chi' scan relative to the starting positionlup th
- motor 'th' scan relative to the starting positionlup tth
- motor 'two theta' scan relative to the starting positionlup phi
- motor 'phi' scan relative to the starting positionmacros
- description of macro facilitymatchUE
- match undulator energymaxk
- maximum position at k reciprocal spacewm monchi
- where is monochromator chimk / umk
- move to the reciprocal space coordinates (HKL)mono
- monochromator - monochromator control macrosmotors
- commands and functions for controlling motorsmove_info
- move_info() - returns what would happen on a movemoveE
- move the energymr
- move to a given angle of specular reflectionmv
- mv and umv - move one motormvd
- move a motor in dial unitsmvr
- mvr and umvr - move a single motor relative to its current positionumv th CEN
- move theta motor to centermond
- monocromator d posiironmontrav
- monochromator in trnasverse directionnewvbeam
- new beam position based on vertical beam or horizontal beam scannewfile
- data file managementnewmac
- re-read the standard macro definitionsnu
-???????
or0
-or1
-or_swap
-os1
- optical slit 1 position to 0os2
- optical slit 1 position to 0pwd
- print spec's current working directorypa
-park6m
- park the 6M PILATUS detector to 175m (x), 924.5m (y) and 200m (z) in directionspil_von
- PILATUS video onpil_voff
- PILATUS video offpil_setdir
- PILATUS set directorypil_setup PIL6
- PILATUS setuppil_settrig "Internal"
-pil_unsetup 0
- PILATUS unsetpl_xMAX
- show the maximum value of the plot in x-directionplotselect pilroi
- plot select PILATUS ROIqdo
- execute a command file without echoquickfly
-quick_collect
-rscan
- specular reflectivity scanr2scan
- reflectivity background scansreadline
- libedit/readline - command line recall and editingresume
- continue an aborted scanroi
- region of Interest counterssamz
- moving sample z directionscans
- scans and scans.4 - read data from ASCII spec data format scan filesserver
- spec server/client - issue commands and control hardware remotelyset
- define the user angle of a motorsetfilter
- set filterset_dial
- define the dial position of a motorsetlat
- set latticeset_lm
- set lower and upper software limitsset_sim
- set simulate (no hardware) modesetplot
- set plotting optionssetpowder
- configure powder-averaged scanssetscans
- configure scan optionsshowtemp
- display the current temperaturesharpopt
-sixc
- 6-circle geometry modesspec
- spec, fourc, twoc, surf, etc. - X-ray diffractometer operation for specific configurationsspec_menu
- spec_menu() - create interactive menu from specificationsspec_par
- spec_par() - sets internal parameterssplot
- plot the plotselect of specific valuessyncE
- synchronize Etw tabzd tabzui tabzuo
- tewak tablete
- read or set the temperatureteramp
- ramp the temperature to a new set pointtscan
- temperature scanth2th
- theta two theta scantw
- "tweak" motorstweakup
- scan the monochromator in d direction (mond), go to the midlle and scan the undulator and move to the highest positionunkludgenu
-??????
vi
- invokes the standard UNIX visual editorvscan
- Variable Step Size Scansvbeamscan
- Vertical direction beam scan based on start, finish, interval and time arrgumentsw
- wait for moving and counting and then beepwa
- list all motor positionswait
- wait() - synchronization with moving, counting and other activitywfilter
- where is filterswideopt
-diftabx
- diffractometer movement in x directionsdiftabz
- diffractometer movement in z directionswh
- where, principal axes and reciprocal spacewhats
- identify what an object iswm
- print information about one or more motorswmono
- where is monochromatic beamwmonoall
- where motor and their position including the motors, phi and filterswmonoall
- where is mirror positionwot
- where is optical tablesws1
- where is first slitws2
- where is second slitw6m
- where is 6M detectorwslits
- where is both slit 1 and slit 2
If you encounter any new commands during your sample run, please send an email and we will add that to the list .