spec
Software for Diffraction
2.4.8.4. - MCA (1D) Data Acquisition
mca_sel(n)
-
Selects which MCA-type device to use with subsequent
mca_get()
,
mca_put()
and
mca_par()
commands.
The numbering of MCA-type devices is set
in the
config
file.
Returns -1 if not configured for device
n
,
otherwise returns zero.
It is not necessary to use
mca_sel()
if only one MCA-type device is configured.
The selected MCA-type device does not change when reading the
config
file with the
reconfig
command.
mca_sel("?")
-
Lists the configured MCA devices, with the currently selected device
marked with an asterisk.
mca_par(par [, val ])
-
A device-dependent function to access various features and
parameters of the currently selected
MCA-type
device.
The string
par
selects an option.
The argument
val
contains an optional numeric value.
See the help file for the particular device for implemented options
and return values.
mca_get(grp, elem) or mca_get(array)
-
Gets data from the currently selected
MCA-type device, and transfers it to
element
elem
of data group
grp
or to the elements of the data array
array
.
Generally returns the number of points read or
-1 for failure.
mca_put(grp, elem) or mca_put(array)
-
Sends data from data group
grp
,
element
elem
or from the data array
array
to the currently selected
MCA-type device.
Generally returns the number of points written or
-1 for failure.
mca_spar(sel, par [, val ])
-
As
mca_par()
above, but selects which MCA device with the
sel
argument.
mca_sget(sel, grp, elem) or mca_sget(sel, array)
-
As
mca_get()
above, but selects which MCA device with the
sel
argument.
mca_sput(sel, grp, elem) or mca_sput(sel, array)
-
As
mca_put()
above, but selects which MCA device with the
sel
argument.