University of Illinois at Urbana-Champaign

emcSetHighTension

NAME

emcSetHighTension - Set the high tension

SYNOPSIS

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

DESCRIPTION

emcSetHighTension() sets the current high tension value

*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 Native high tension units of instrument
KVOLT_UNITS Kilovolts
correction
Boolean value which enables correction of known side effects of this function.
relative
Flags what the high tension change is relative to:
EMC_RELATIVE High tension change measured relative to current value.
EMC_ABSOLUTE High tension change measured relative to 0kV (absolute kV setting).
ht
the high tension value

DIAGNOSTICS

EMC_OK (0) Success
EMC_ERROR (-1) Error
EMC_BADUNITS (-101) Invalid units specified for this request
EMC_NULLPTR (-111) Unexpected NULL pointer encountered

PREVIOUS Page 51 of 54 NEXT