emcGetFocus
NAME
emcGetFocus - Retrieve focus settings
SYNOPSIS
#include "emc.h"
int emcGetFocus(EM *em, int units, double *focus);
DESCRIPTION
emcGetFocus() retrieves the current focus
settings
- *em
- points to an
EM control and communications structure that
was returned by the emcOpen() call.
- units
- the units the values are should be returned as:
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 |
- *focus
- points where to store the current focus value
DIAGNOSTICS
EMC_OK (0) |
Success |
EMC_ERROR (-1) |
Error |
EMC_UNCALIBRATED (-100) |
Instrument not calibrated for given request |
EMC_BADUNITS (-101) |
Invalid units specified for this request |
EMC_UNSUPPORTED (-102) |
Function not supported by instrument |
Page 33 of 54 