University of Illinois at Urbana-Champaign

emcSetFocus

NAME

emcSetFocus - Change the focus setting

SYNOPSIS

#include "emc.h"
int emcSetFocus(EM *em, int units, int correction,
                int relative, double defocus);

DESCRIPTION

emcSetFocus() sets the current defocus setting of the instrument.

*em
points to an EM control and communications structure that was returned by the emcOpen() call.
units
the units the values are expressed in:
UNCALIBRATED_UNITS Focus is measured in units
ANGSTROM_UNITS Focus is measured in angstroms
NANOMETER_UNITS Focus is measured in nanometers
MICRON_UNITS Focus is measured in microns
autocorrect
Type of side effect corrections to perform:
EMC_NONE No side effect correction
relative
Flags what the astigmator change is relative to:
EMC_RELATIVE Focus change measured relative to current value
EMC_ABSOLUTE Focus change measured relative to "no focus change" (absolute setting)
focus
the amount of focus change

DIAGNOSTICS

EMC_OK(0) OK
EMC_ERROR (-1) Error
EMC_UNCALIBRATED (-100) Instrument not calibrated for given request
EM_BADUNITS (-101) Invalid units specified for this request
EMC_UNSUPPORTED (-102) Function not supported by this instrument

PREVIOUS Page 48 of 54 NEXT